Show
Ignore:
Timestamp:
05/14/05 10:11:25 (4 years ago)
Author:
zoeloelip
Message:

The session lifetime patch only fixed the problem when using one type of session handler. It's now
also fixed for the other type of session handler.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/session.c

    r89 r99  
    44   +----------------------------------------------------------------------+ 
    55   | Copyright (c) 2004 - 2005 eAccelerator                               | 
    6    | http://eaccelerator.net                                                     | 
     6   | http://eaccelerator.net                                              | 
    77   +----------------------------------------------------------------------+ 
    88   | This program is free software; you can redistribute it and/or        | 
     
    157157        strcpy (skey, "sess_"); 
    158158        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; 
    164162        sval.type = IS_STRING; 
    165163        sval.value.str.val = (char *) val; 
     
    335333        strcpy (key, "sess_"); 
    336334        strcat (key, (*arg_key)->value.str.val); 
    337         /* this will get the ini value but not the value set by the user with ini_set 
    338         /* php allows a user to set this, so we should allow this to 
    339         if (cfg_get_string ("session.gc_maxlifetime", &tmp) == FAILURE) { 
    340                 ttl = 1440; 
    341         } else { 
    342                 ttl = atoi (tmp); 
    343         } 
    344         */ 
    345335        ttl = PS(gc_maxlifetime); 
    346336        if (ttl < 0)