How to set the session timeout in Zend Framework 2
- by user2261761
I don't have much Zend experience and want to change someone's login code in Zend to make the session not expire.
It seems the code is basic behavior:
$adapter = $this->getAuthService()->getAdapter();
$adapter->setIdentity($email)->setCredential($password);
$result = $this->getAuthService()->authenticate();
What do I have to do to make the session not expire or to at least set the session for a specific time?
Right now the user doesn't stay logged in for long, I think perhaps it is just relying on default php settings behavior like the standard 24 minutes for the gc_maxlifetime.
What is the connection between Zend_Session and AuthService?