how to maintain the session for infinite time
hi i want to know that how can we make a session valid for infinite time.i mean to say if we have to make session invalid explicitly otherwise it would be alive for infinite timethanks
# 1
As it says in the API call for [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int)]session.setMaxInactiveInterval()[/url] if you make the timeout value negative (eg -1) it will never expire.Cheers,evnafets