Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Software (http://www.velocityreviews.com/forums/f6-software.html)
-   -   Using session attribute in tomcat (http://www.velocityreviews.com/forums/t643949-using-session-attribute-in-tomcat.html)

rg_yazdani 11-11-2008 10:44 AM

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.

rekha 11-11-2008 11:12 AM

instead of setting the attributes to null, just invalidate the session when user does log out.

eg:- session.invalidate();

rg_yazdani 11-11-2008 12:39 PM

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:

Originally Posted by rekha
instead of setting the attributes to null, just invalidate the session when user does log out.

eg:- session.invalidate();


Michelhardjo 01-28-2012 04:41 AM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57