skein Posted October 11, 2007 Share Posted October 11, 2007 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)? Quote Link to comment Share on other sites More sharing options...
Orio Posted October 11, 2007 Share Posted October 11, 2007 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. Quote Link to comment Share on other sites More sharing options...
skein Posted October 11, 2007 Author Share Posted October 11, 2007 oh thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.