I don't think its cakePHP specific really, and its not something I have done before.
But off the top of my head, it seems it would just be a case of storing a random value in the DB against the user, and then storing this in the cookie as well, this would be regenerated each time the user logs in. In cake terms, you'd then compare the two in the app_controller, if they don't match, then log that user out. (not sure of the best way of forcing a logout in cake) Anyway, just my thoughts. Other more experienced cake users may know of an existing built in method. On Jun 24, 10:53 am, Shaz <shazam...@gmail.com> wrote: > Just wanted to ask what would be the best way of doing this? > Essentially if a person logs in from one location, and then a while > later from the other - I want them to immediately be logged out from > the first location. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php