How the session file destroys automatically?
Posted: Mon Nov 22, 2010 8:16 am
Hi All
I have a query related to session and I will highly appreciate for your answers.
Query:
======
in PHP we use
session_start(); // To start the session
$_SESSION['key']='someValue'; // Assigns some values to the key
Lets assume we did this operation during user login time.
That means for each user there will be a new file in /tmp folder [In windows or in the path session.save_path]
Suppose we are not using session_destroy() during logout.
That means for each user the file that created by the server will remain on the same place. My question is how we can delete those files as if we think we are storing 50Kb data for each user and we have 1000000000 users then what will happen?
I have a query related to session and I will highly appreciate for your answers.
Query:
======
in PHP we use
session_start(); // To start the session
$_SESSION['key']='someValue'; // Assigns some values to the key
Lets assume we did this operation during user login time.
That means for each user there will be a new file in /tmp folder [In windows or in the path session.save_path]
Suppose we are not using session_destroy() during logout.
That means for each user the file that created by the server will remain on the same place. My question is how we can delete those files as if we think we are storing 50Kb data for each user and we have 1000000000 users then what will happen?