• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I do "setMaxInactiveInterval" in JSP  RSS feed

 
Richard Yin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for help from Dave.I am doing session tracking in JSP.But I don't know how to change the
session lifetime in JSP using tomcat."setMaxInactiveInterval" is used in Java Servlet,so what shall I do in JSP?
Richard
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richard
This might have been better continued in the original thread, that way then entire discussion can be followed by someone who does a search for the same type of question.
In your JSP, the first one served after they start a session would be best, just add a scriptlet that uses the implicit session object to make the method call and supply however many seconds you want to change it to as the argument to the call.
something like this:

hope that helps
 
Richard Yin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Dave.It helps me a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!