Hi All,
I'm trying to get sessions to have a long lifespan, so they last for 30
days and persist after the browser is restarted.
My understanding is that this is what the 'remember_me' option is for,
however each time i reopen the browser I get a new session id. Here's my
config :
return array(
'service_manager' => array(
'factories' => array(
'Zend\Session\SessionManager' =>
'Zend\Session\Service\SessionManagerFactory',
'Zend\Session\Config\ConfigInterface' =>
'Zend\Session\Service\SessionConfigFactory',
),
),
'session_config' => array(
'cookie_lifetime' => $rememberMeSeconds,
'remember_me_seconds' => $rememberMeSeconds,
'use_cookies' => true,
'cookie_httponly' => true,
),
);
Thanks for any help
Brian