I have a script that calls a function that starts the session with session_start();
command.
If the user closes the page early, will the session variables remain stored and waste memory? Or do I have to run session_destroy()
at some point?
I'm worried that multiple users would force to server to store a lot of extra data.
Asked
Active
Viewed 57 times
0

Eric
- 1
-
1This answers your question https://stackoverflow.com/questions/1516266/how-long-will-my-session-last – Robert Jun 19 '18 at 22:31
-
If the session is created and is not timeout session values will exist ! – d3vdpro Jun 19 '18 at 22:34
-
dont worry php knows how to take care of itself. – Jun 20 '18 at 00:04
-
garbage collection will deal with this. – Chris Cousins Jun 20 '18 at 02:48