|
|||
|
Im trying to utilize the Zend_Session_Namespace functionality and I can't get this thing to go...any help would be appreciated
My bootstrapper has the following... $idSession = new Zend_Session_Namespace('ID_Session'); $idSession->_myid= "5" Now in my IndexController I try and reset this id like so... $idSession = new Zend_Session_Namespace('ID_Session'); $idSession ->_myid= "10"; Then in my view I display this...and it always comes up as 5...so its not modifying the session variable...im assuming its "read-only"? How can I get it so I can modify this value... Thanks |
|
|||
|
There is Zend Framework: Documentation
I played with it just yesterday: Code:
Zend_Loader::loadClass('Zend_Session');
Zend_Loader::loadClass('Zend_Session_Namespace');
in bootstrap
Zend_Session::start();
in indexcontroller
$sess = new Zend_Session_Namespace('user');
$sess->info = array( 'id' => '2',
'username' => 'David',
'pass' => '132');
Zend_Session::rememberMe(3600); // remember me for one hour
$sess->lock();
(you probably could use this when authenticating the data)
Zend_Session::namespaceGet('user'); //Experimental, haven't even tested it
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|