Quickstart: Zend_Session

Posted on January 14, 2007. Filed under: Quick Start, Zend Framework |

Bootstrap:
Zend::register('session', new Zend_Session());

Write some value
Zend::registry('session')->value = $value;

Read some value
$value = Zend::registry('session')->value;

Use isset
if(!isset(Zend::registry('session')->value)) {
Zend::registry('session')->value = $value;
}

Make a Comment

Make a Comment: ( 1 so far )

blockquote and a tags work here.

One Response to “Quickstart: Zend_Session”

RSS Feed for notes171 Comments RSS Feed

With version 0.8, you can’t call new Zend_Session. The __contruct is private. Use Zend_Session::start() instead


Where's The Comment Form?

  • Bookmarks

Liked it here?
Why not try sites on the blogroll...