• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Isnew confusing

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"); }

}
 
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This works perfectly for me:



-Yuriy
 
reply
    Bookmark Topic Watch Topic
  • New Topic