Results 1 to 2 of 2

Thread: Extend Session Time?

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Posts
    45

    Extend Session Time?

    PHP Code:
    $currentTimeoutInSecs ini_get('session.gc_maxlifetime');
    echo(
    "$currentTimeoutInSecs<br>");
    ini_set('session.gc_maxlifetime'4*60*60);
    $currentTimeoutInSecs ini_get('session.gc_maxlifetime');
    echo(
    "$currentTimeoutInSecs"); 
    so the output would be
    1440
    14400

    which theoretically means the session time should be extended however it is not.....

    Users are uploading huge files which can take up to 2 hours so I need to extend the session time so it does not log them out. Any thoughts? Any idea why it is not working or some sort of alternative solution

  2. #2
    Join Date
    Jun 2008
    Location
    cardiff
    Posts
    77
    why not use session cookies and leave it blank in the login script then it will og them out when they close the browser not after a set time
    www.uk-site-design.co.uk stylish website development by Mke Dodd from £49.99

Similar Threads

  1. Need help with Perl Session tracking
    By tdkrause1 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 12 May 2008, 08:18 PM
  2. loss of session variable
    By numbenator in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 22 Sep 2005, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •