-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys:
I found that (especially second login with same account) implicit object "session" sometimes is a different object with Sessions.getCurrent().
I also found one of them is _invalided =true
why? is it caused by no invalidate session when logout?
because I have 3 composer , CompanyComposer get user account profile from database and store it in session.
session.setAttribute();
the other 2 composers (RComposer, MyRRComposer) get user account profile from session by sessionScope.getAttribute();
the first time login, everything goes well, but logout and login again.
the page which apply that 2 composers(RComposer, MyRRComposer) can't get the user account profile from session, after I traced the code, I found that session sometimes is the old, invalidated session, and Sessions.getCurrent() will be the current one.
Hi hawk,
before my sessions are managed by spring. I must call the following line that the session are cleared:
Sessions.getCurrent().invalidate();
regards
Stephan
Asked: 2009-05-05 09:24:33 +0800
Seen: 291 times
Last updated: May 05 '09