noobstar Posted January 12, 2007 Share Posted January 12, 2007 Hi everyone :)I've been looking at the php.net for some info on how to make a session expire after a certain amount of time but their examples are confusing :(What im tring to do is very very simple im tring to make a logged in user expire after 5min that's it.Thank you very much for any help what so ever :) Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 12, 2007 Share Posted January 12, 2007 You could set the time when they log in as a session variable, and on each page check if it's been more than 5 minutes. If it has, kill the session.That's a short time, why are you doing that? Quote Link to comment Share on other sites More sharing options...
noobstar Posted January 12, 2007 Author Share Posted January 12, 2007 Only an example i pulled out im not going to set it 5min though lol that's way to short im going to try what you said right now see what happens Thx for the reply :) 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.