• 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

session Problem.

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am using this code

<meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=index.jsp">

and Xml
<session-config>
<session-timeout>1</session-timeout>
</session-config>
its working fine.but above the coding automatically page is expire even if user is accessing Application..

only if user not accessing page for 1 min page should be expire else session should be active.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you are saying is not possible. The session will expire after the specified time is over.
Also please consider making your subject line more descriptive. Read this to know why this is important. You can edit your post by clicking the .
Anyways I think your approach to the problem is wrong something similar like this thread .

There may be a better solution to this problem and you will come to know that only if you tell what exactly you are trying to do.
 
reply
    Bookmark Topic Watch Topic
  • New Topic