I'm having problems interacting with my Storage Session.
This is done in my AuthController
PHP Code:
$auth = Zend_Auth::getInstance();
require_once 'Zend/Auth/Storage/Session.php';
$auth->setStorage(new Zend_Auth_Storage_Session('gwAuth'));
$authAdapter = new MyAuthAdapter($username, $password);
$result = $auth->authenticate($authAdapter);
Once authentication is complete this is the code used to check if the session is set.
PHP Code:
require_once 'Zend/Auth/Storage/Session.php';
if (Zend_Session::namespaceIsset('gwAuth'))
{
$this->_redirect('/home/index');
}
But I get this error:
Zend_Session is not marked as readable
Question 1: How do I set the session readable?
Question 2: What is the proper way to interact with the session, since it is not the default Zend_Auth?
I had everything working fine when using the default Zend_Auth, hasIdentity() / clearIdentity() etc.. however I need to use different namespaces and cannot get it to work.