Skip to content

Commit

Permalink
Not setting the cookie timeout, it is better if the user can control …
Browse files Browse the repository at this point in the history
…this setting

Fixes #4239
  • Loading branch information
lorenzo committed Aug 12, 2014
1 parent cd5fb7e commit 5bf16ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Network/Session.php
Expand Up @@ -191,7 +191,6 @@ protected static function _defaultConfig($name) {
*/
public function __construct(array $config = []) {
if (isset($config['timeout'])) {
$config['ini']['session.cookie_lifetime'] = 60 * $config['timeout'];
$config['ini']['session.gc_maxlifetime'] = 60 * $config['timeout'];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Network/SessionTest.php
Expand Up @@ -439,7 +439,7 @@ public function testCookieTimeoutFallback() {
];

new Session($config);
$this->assertEquals(400 * 60, ini_get('session.cookie_lifetime'));
$this->assertEquals(0, ini_get('session.cookie_lifetime'));
$this->assertEquals(400 * 60, ini_get('session.gc_maxlifetime'));
}

Expand Down

0 comments on commit 5bf16ed

Please sign in to comment.