![]() |
Using session attribute in tomcat
Hi there,
I have the following problem in my web application. I hold userId and roleId as two session attributes when user login, and in each page write userId as active user and check roleId for some work. when user logout, I set these attribute with null. When two or more users login concurrently or not, in some machines, that's work well but at one of them, attribute value changed. For example, user X login and after viewing some pages logout and then another user Y login. when user Y want to view pages, in some of them user X is wrote as active user whereas user X has logged out. I don't know why, specially when I see this work well in another machines. Regards. |
instead of setting the attributes to null, just invalidate the session when user does log out.
eg:- session.invalidate(); |
Re: using session attribute in tomcat
Thanks rekha,
When I use session.invalidate(), problem doesn't clear. I found new thing, when I set Internet Options --> general -->setting --> 'check for newer versions of stored pages' to 'automatically' , problem solved. I want to know how can I control this option from application or tomcat? Regards. Quote:
|
i having the same issue. how to solve this without setting the internet options
'check for newer versions of stored pages' |
| All times are GMT. The time now is 12:44 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.