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 Link to comment https://forums.phpfreaks.com/topic/39881-sessions-limit-to-one-machine-at-a-time/ Share on other sites More sharing options...
Jessica Posted February 24, 2007 Share Posted February 24, 2007 Edit: I make no sense. Link to comment https://forums.phpfreaks.com/topic/39881-sessions-limit-to-one-machine-at-a-time/#findComment-192744 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 Link to comment https://forums.phpfreaks.com/topic/39881-sessions-limit-to-one-machine-at-a-time/#findComment-192765 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. Link to comment https://forums.phpfreaks.com/topic/39881-sessions-limit-to-one-machine-at-a-time/#findComment-192770 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.