Browse files

Merge pull request #5 from MarkRose/fix-session-timeout

Fix session timeout
  • Loading branch information...
2 parents f2718be + 8d8c95b commit 6363a1499aa02a904556a9ae75938def9ae6ae24 @iliaal iliaal committed Nov 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 php_memcached.c
View
2 php_memcached.c
@@ -2522,7 +2522,7 @@ PS_WRITE_FUNC(memcached)
memcached_st *memc_sess = PS_GET_MOD_DATA();
sess_key_len = spprintf(&sess_key, 0, "memc.sess.key.%s", key);
- sess_lifetime = zend_ini_long(ZEND_STRL("session.gc_maxlifetime"), 0);
+ sess_lifetime = zend_ini_long("session.gc_maxlifetime", sizeof("session.gc_maxlifetime"), 0);
if (sess_lifetime > 0) {
expiration = time(NULL) + sess_lifetime;
} else {

0 comments on commit 6363a14

Please sign in to comment.