Forum Moderators: coopster

Message Too Old, No Replies

session file on server

         

DenRomano

7:06 pm on Jun 28, 2003 (gmt 0)

10+ Year Member



OK the session ID is placed on the clients computer and that ID points to a file on the server. How long does the file on the server stay. What deletes it? I am guessing they must go away somehow.

Dennis

Timotheos

7:43 am on Jun 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In a script you can use session_destroy() to delete.

Otherwise, PHP has a built-in garbage collection mechanism. Check out session.gc_maxlifetime and session.gc_probability in the php.ini file.