Monday, June 29, 2009

Delete current login user sessions

Hi Guys,

Does anyone know of a method to delete/destroy any sessions created by
a user when they "re" login? I.E. If 2 people login using the same
login, the first person should get "kicked" out (session destroyed)
when the second person logs in.

From looking at the Session base class, __regenerateId() does a
similar action, but obviously for a different instance.

I would imagine a simple extension to the Session class called
$Session->destroy($id) where id is the session id of the currently
logged in person.

Much Appreciated.

G
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: