Jump to content

[SOLVED] another sessions question


skein

Recommended Posts

well i made a log in system with sessions. But when I close the window and open a new one the system starts another session and doesn't delete the other one. Is there a way to make it use the old session or is there a way to delete the old session if the window closes becouse it takes up space to (thou very little)?

Link to comment
https://forums.phpfreaks.com/topic/72825-solved-another-sessions-question/
Share on other sites

The old session is being deleted after the number of seconds that is set in the session.gc_maxlifetime directive. session.gc_maxlifetime is defaulted to 1440 (IE 24 minutes). So if you want, you could lower the value of session.gc_maxlifetime. But as far as it goes to garbage collection and handling memory, PHP does a pretty good job on it's own so there's no need to intervene in my opinion.

 

Orio.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.