merck_delmoro Posted May 8, 2009 Share Posted May 8, 2009 may I know how to logout the user when the browser get close ??? for security purposes so no one can view someones account when they forgot to log off when they close the browser Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 Use sessions if it is that important. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted May 8, 2009 Share Posted May 8, 2009 Indeed - if you are using sessions in order to implement a login then users will be logged out when they close their browser anyway. It you're concerned about security, you could also ensure that the user's not been inactive for more than x minutes. You might like to check out this tutorial on cookies and sessions if you're not too comfortable with them: http://www.phpfreaks.com/tutorial/sessions-and-cookies-adding-state-to-a-stateless-protocol 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.