SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way to increase the time it takes for a session in PHP to timeout, using .htaccess? My host won't change it and said to do it using the .htaccess.

    Thanx,
    Lenny

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make an .htaccess file with the following line in it and place it in your web root and change the 1440 to whatever 1440 is number of seconds till session ends

    php_value session.gc_maxlifetime = 1440
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i get an 'Internal Server Error' doing that, should I put anything else in the .htaccess, or change permissions or something else?

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My mistake sorry shold be

    php_value session.gc_maxlifetime 1440

    I am pretty sure you don't need quotes around the value but if that doesn't work then

    php_value session.gc_maxlifetime "1440"
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

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