If you are looking to save/fetch session variable in ZEND Framework. Please use the below code:
// DEFINE SESSION VARIABLE
$sess = new Zend_Session_Namespace('MyNamespace');
$sess->username = "you_name"; // define your value to save in session
//FETCH SESSION VARIABLE
$session = new Zend_Session_Namespace('MyNamespace');
$userName = $session->username; // username is the session variable name
0 Comment(s)