IIRC there's new browser window detection code somewhere in Wicket (I haven't touched it myself, but you can probably find it with some googling and code browsing in the settings). When you detect a new window show a label/link with text "Are you not <current username>? Click here to change to your account". Make it prominent, but not automatic: your normal user might want to use two tabs :-)
Another option is to ask the user "A new browser window is detected, do you want to continue as a different user?" Martijn On Fri, Nov 5, 2010 at 6:44 PM, Daniel Toffetti <dto...@yahoo.com.ar> wrote: > > This is not a valid use case, so I must log out the first user, but how > can I affect its own browser tab so that it displays a "logged out" message > ? Is this possible ? > > Thanks for your help, > > Daniel > > > Martijn Dashorst wrote: >> >> Your browser doesn't identify a new tab as a new session. Therefore >> the servlet container doesn't know that it is a new user. If it is a >> valid usecase, you should build multi user session sharing in your >> app. If it is a bug, you should properly log out the first user when >> the new user is identified in the second tab. >> >> Martijn >> > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Problem-with-two-users-logging-in-two-tabs-of-same-browser-window-tp3027407p3029083.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org