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
[205 byte] By [panna_worlda] at [2007-11-26 13:19:03]
# 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
evnafetsa at 2007-7-7 17:45:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...