Changeset 99 for eaccelerator/trunk/session.c
- Timestamp:
- 05/14/05 10:11:25 (4 years ago)
- Files:
-
- eaccelerator/trunk/session.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/session.c
r89 r99 4 4 +----------------------------------------------------------------------+ 5 5 | Copyright (c) 2004 - 2005 eAccelerator | 6 | http://eaccelerator.net |6 | http://eaccelerator.net | 7 7 +----------------------------------------------------------------------+ 8 8 | This program is free software; you can redistribute it and/or | … … 157 157 strcpy (skey, "sess_"); 158 158 strcat (skey, key); 159 if (cfg_get_string ("session.gc_maxlifetime", &tmp) == FAILURE) { 160 ttl = 1440; 161 } else { 162 ttl = atoi (tmp); 163 } 159 ttl = PS(gc_maxlifetime); 160 if (ttl < 0) 161 ttl = 1440; 164 162 sval.type = IS_STRING; 165 163 sval.value.str.val = (char *) val; … … 335 333 strcpy (key, "sess_"); 336 334 strcat (key, (*arg_key)->value.str.val); 337 /* this will get the ini value but not the value set by the user with ini_set338 /* php allows a user to set this, so we should allow this to339 if (cfg_get_string ("session.gc_maxlifetime", &tmp) == FAILURE) {340 ttl = 1440;341 } else {342 ttl = atoi (tmp);343 }344 */345 335 ttl = PS(gc_maxlifetime); 346 336 if (ttl < 0)