Session timeout

How to invalidate the session in the appication which do not have the login screen.

In my application ,after clicking the home page url one popup will come ask username and password.So home itself is the login page.Thean how can i invalidate the session after time out.

If user click the homw page first time ,then there is no session and it will create the new session.So i am unable handile session invalidation in home page.

Regards,

Rajesh

[474 byte] By [kilanoorua] at [2007-11-26 18:23:52]
# 1
The amount of time located for timeout is set in one of the configuration files of the server. Once a session is not accessed after the length of time, the server should invalidate the session automatically.
nghianjaa at 2007-7-9 5:57:56 > top of Java-index,Java Essentials,Java Programming...
# 2

Login screen or not, session timeout can be specified in web.xml with <session-timeout>.

As to know if you have a new session or not, use the session.isNew() method.

Anything else, you want to know, you can easily find answers by using Google. Here's [url=http://www.jguru.com/forums/view.jsp?EID=1043736]one[/url].

karma-9a at 2007-7-9 5:57:56 > top of Java-index,Java Essentials,Java Programming...