change session property in zend

Posted by Behrang on Stack Overflow See other posts from Stack Overflow or by Behrang
Published on 2010-05-01T11:42:18Z Indexed on 2010/05/01 11:47 UTC
Read the original article Hit count: 302

Filed under:
|

I made session using zend authentication it works good but my problem is I want to change some property of it from another action in other controller my code is: $auth = Zend_Auth::getInstance(); if($auth->hasIdentity()) { $blogId = new model_blog request; $auth->getIdentity()->user_current_blog = $blogId; print "Current Blog"; print_r($auth->getIdentity()->user_current_blog); } in this action user_current_blog change but in other action it not works!!! where I made a mistake???

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about php