dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: SESSION Files Not Deleting

  1. #1
    Join Date
    Mar 2010
    Location
    Australia, Sydney
    Posts
    12

    Question SESSION Files Not Deleting

    Hi

    Using Wamp I haven't yet noticed that my SESSION files in the Tmp folder are automatically deleting, can anyone please tell me how i can configure or test this as they seem to just be building up.

    Thank you.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,636
    First find out what the values are that you're using for all the session.gc_* settings in your PHP configuration. Check the links on this manual page for gc_maxlifetime, gc_probability, and gc_divisor to see how they interact to determine when garbage collection is run.

    Also note that when you do a session_start(), if there is a file for that session ID, its last modified time will be updated to the current time before garbage collection is run, so it will not be deleted. Therefore you may have to test with two different users, or delete the cookie on the browser to force a new session ID.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Mar 2010
    Location
    Australia, Sydney
    Posts
    12
    thanks a lot

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles