SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict scoobasteve1982's Avatar
    Join Date
    Apr 2007
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Session timeout problems

    Hi there,

    I've posted about this before on SitePoint however I still cant' get it to work. Here's my problem, I start a session and it last about 30 minutes with no activity. I'd like to set it to about 8 to 10 hours. I believe it's a server setting in php.ini however, I believe you can set it within code. Currently I'm attempting to do this with:

    PHP Code:
    ini_set("session.gc_maxlifetime""36000"); 
    Can anyone help? Thank you.

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,329
    Mentioned
    191 Post(s)
    Tagged
    4 Thread(s)
    A quick search on PHP.net uncovered two nuggets that might be of some help (sorry, I do not have personal experience in this realm to share with you)

    First, a documented bug against gc_maxlifetime.
    Secondly, this entry regarding session_cache_expire.

    Hope this helps.

    Off Topic:


    Love your Avatar!
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Addict scoobasteve1982's Avatar
    Join Date
    Apr 2007
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you ParkinT!


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
  •