The moose likes JSP and the fly likes session Problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "session Problem." Watch "session Problem." New topic
Author

session Problem.

ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 37
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.


Thanks & Regards
Ayyappan
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2551
    
    2

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.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session Problem.
 
Similar Threads
WEB-INF/web.xml-help
session timeout
time out period defined by the servlet container?
WEB-INF/web.xml-help
session doubt