change session property in zend
- by Behrang
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???