I have it working now, however I'm not sure if it is working as it should...
Added to the bootstrap:
PHP Code:
require_once 'Zend/Session.php';
Zend_Session::start();
And this is the check:
PHP Code:
require_once 'Zend/Auth/Storage/Session.php';
if (!(Zend_Session::namespaceIsset('gwAuth')))
{
$this->_redirect('/auth/index');
}
else
{
$this->_redirect('/home/index');
}
Is there anything flawed in here? This is what the actual cookie looks like:
Zend_Auth|a:1:{s:7:"storage";N;}gwAuth|a:1:{s:7:"s torage";s:5:"test2";}
Where test2 is my username.