Ticket Details
Incorrect PHP session length
RFC Ticket (closed)
###What happened:
- The session remained active after I closed the browser, using only the PHP Session adapter.
###What was expected:
- The session would reset when the browser was closed.
###Proposed solution:
In the PHP Session adapter,
Replace:
{{{
protected $_defaults = array(
'session.cookie_lifetime' => '86400',
);
}}}
With:
{{{
protected $_defaults = array(
'session.cookie_lifetime' => '0',
);
}}}
so that the session automatically expires when the browser is closed.
This is the default configuration. You can override the setting in your session config. {{{ Session::config(array('adapter' => 'Php', 'session.cookie_lifetime' => 0)); }}}