• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

My session expire even while I working on it

Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
In my web application I have made my session inactive time interval to 15 mints. I want to notify the user so that before 5 mints to session expire I will alert the user. If he wants to extend his session he can say yes to the alert, If the user says Yes then I will just submit a dummy JSP page so that the inactive time interval is again 15 mints.
So now the user has 15 more mints to work in the application. This approch works for couple of time but after 2nd or 3rd time, the session expires.Why is that? I am totally confused. Can someone please explain me why this is happening.

I have one more doubt. I made a session not to expire by giving max inactive time interval to -1, if I close the browser window will this session expire or not

Thanks in advance

expectation is the root of all heartache - shakespeare. tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic