• Post Reply Bookmark Topic Watch Topic
  • New Topic

Isnew confusing  RSS feed

 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The maxinactivitytimeout is set to 60 second( i checked this by displaying in form) and I have this code in my form. Seems no matter what it returns true always. I will think if I sit idle for more than a minute it should return me true next time I click the button. It return true always no matter when you click even before one minute.....


My explanation is that thsi really check ones time and if I refresh the page it checks that time. So really hard to check when timeout occurred in JSP.

if (<%= session.isNew()%> {
alert("true");}
else { alert("false"); }

}
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This works perfectly for me:



-Yuriy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!