Skip to content

Commit e61c73c

Browse files
committed
Merge pull request #4 from php-cache/patch1
Bugfix, ttl was 0
2 parents 6feb965 + 7638635 commit e61c73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Session/SessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(CacheItemPoolInterface $cache, array $options = arra
5151
{
5252
$this->cache = $cache;
5353

54-
$this->ttl = isset($options['cookie_lifetime']) ? (int) $options['cookie_lifetime'] : 86400;
54+
$this->ttl = isset($options['ttl']) ? (int) $options['ttl'] : 86400;
5555
$this->prefix = isset($options['prefix']) ? $options['prefix'] : 'sf2ses_';
5656
}
5757

0 commit comments

Comments
 (0)