Using session attribute in tomcat
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.
instead of setting the attributes to null, just invalidate the session when user does log out.
Re: using session attribute in tomcat
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?
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.