-
1. Re: session switch?
joblini Aug 4, 2009 10:48 PM (in response to peterh.geprio.karnet.lublin.pl)Hello Peter,
I'm not sure if this is your problem, but if a user is already logged in during the same Session, any subsequent login silently fails, and processing continues under the logged on user. To login as a different user, the currently logged in user must logout, or, all browser windows must be closed to ensure that a new Session is started.
public synchronized void authenticate() throws LoginException { // If we're already authenticated, then don't authenticate again if (!isLoggedIn() && !credentials.isInvalid()) { principal = null; subject = new Subject(); authenticate( getLoginContext() ); } }
In my case I found this behavior to be undesirable, and I overrode the Identity component to remove the check for !isLoggedIn()
-
2. Re: session switch?
peterh.geprio.karnet.lublin.pl Aug 4, 2009 10:58 PM (in response to peterh.geprio.karnet.lublin.pl)Thanks for reply, but my problem is different.
For example Mr Andy has only one accountandy
and Mrs Anny has accountanny
. When Mr Andy log in as andy and click on his profile page he becomes logged in as anny.
I can't reproduce it, it's happening only under some load for example over 100 users logged in.