Hi Mike, I'm just using the default save handler - which I presume is the tmp dir. This is all local for now.
Regardless, as soon as I close and reopen the browser a new session cookie is generated. Brian On Wed, Sep 11, 2013 at 3:00 PM, Mike Willbanks <[email protected]> wrote: > What are you using for a save handler? By default it will likely utilize > files and you also need to look at the gc settings. For instance most > sessions are written by default to the tmp directory of the system which > most sysadmins will clear out from time to time. > > > On Wed, Sep 11, 2013 at 6:35 AM, Brian Gallagher < > [email protected]> wrote: > >> 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 >> > > -- Brian tel: +353 (0)864008052 email: [email protected] skype: gallagherbrian
