xike Posted February 24, 2007 Share Posted February 24, 2007 How can I set it so when a user logs in from a new machine, their sessions expire on any other machines? Thanks, -xike Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 24, 2007 Share Posted February 24, 2007 Edit: I make no sense. Quote Link to comment Share on other sites More sharing options...
emehrkay Posted February 24, 2007 Share Posted February 24, 2007 you can store a unique id in the database that is generated during login, sore it in a session var and check against it during each page load. that way when the page is loaded on the other computer, it wont match and they'll be logged out Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 24, 2007 Share Posted February 24, 2007 That's similar to what I was suggesting, and I had a reason why it wouldn't work. But now I forgot. 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.