[Rails] invalidating a session on multiple login

Kevin Olbrich
Thu, 22 Jun 2006 14:42:29 -0000

On Thursday, June 22, 2006, at 6:06 PM, Martin DeMello
wrote:
>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
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails

If they are browsing from the same browser, they will be using the same
session.  If they run a different browser, then it will create a new session.

_Kevin

--
Posted with http://DevLists.com.  Sign up and save your mailbox.