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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.