[Rails] invalidating a session on multiple login

Martin DeMello
Thu, 22 Jun 2006 12:36:51 -0000

How do I do the following: if a user is logged in, then opens another
browser tab and logs in again (either as himself or as someone else),
I want to invalidate the session in the first tab and throw up a
"logged in from another browser window" screen. RIght now,
user1''s
session silently becomes a duplicate user2 session instead (from what
I understand, sessions are bound to browser-specific cookies, so that
is understandable, but definitely not desirable).

martin