PHP Sessions ISPC3 and SuPHP

Discussion in 'General' started by Germanius, May 21, 2011.

  1. Germanius

    Germanius New Member

    Hi there,

    have some problems with a login script and sessions.
    The session always get inactive after 3 minutes of inactivity. How can I make it longer, lets say 30 minutes or until the user logs out.
    I used ini_sets and spcifyed a sesseion save path to a new folder. That works, sessions are stored there.
    Here are my ini_sets:
    PHP:
    ini_set('session.gc_probability'1);
     
    ini_set('session.gc_dividend',100);
     
    ini_set('session.gc_maxlifetime'86400);
     
    ini_set('session.cookie_lifetime'86400);
     
    ini_set('session.use_cookies',1);
     
    ini_set('session.use_only_cookies',0) ;
     
    session_cache_expire('1440');
     
    session_set_cookie_params (86400); 
    But it is still the same. After 3 minutes session is inactive. On my localhost it works.
     
  2. Germanius

    Germanius New Member

    I see the sessions which were created in the folder. But they disappear after 3 minutes or something like this.
    Something is deleting them, but it is not my script. Is ISPC3 deleting sessions after a while?
    System is Debian Lenny.
     
  3. till

    till Super Moderator

    ISPConfig deletes the sesion once a day at 0:20 in the morning when the session files are older then one day as part of the cron_daily cronjob. So ISPConfig is not causing this 3 minute cleanup.
     

Share This Page