Auto Close
Hey Im just wondering if you guys know of any timer like thing to close out or forward the page somewhere else? Im having problems with the session timing out and my page throwing errors because the session expired. So i figure Ill just log them out automatically when there is a session expiration..
[307 byte] By [
jbayugaa] at [2007-11-26 18:09:56]

# 3
No problem:
first, put this code in your web.xml:
<web-app ...>
...
<session-config>
<session-timeout>30</session-timeout>
</session-config>
....
<listener>
<display-name>SessionListener</display-name>
<filter-class>...full qualified class name...</filter-class>
</listener>
...
</web-app>
The filter class has to implement the javax.servlet.http.HttpSessionListener. You can then code your "forward"-action or anything else in the method:
public void sessionDestroyed(HttpSessionEvent event) {
...
}
# 4
Hey man .. Sorry i think im retarded.. so in my web.xml i put
<listener>
<display-name>SessionListener</display-name>
<listener-class>../webadmin.conrtollers.Logout</listener-class>
</listener>
There doesn't seem to be a <filter-class> tag? and I called my class that implements the javax.servlet.http.HttpSessionListener "Logout" whats going on? I can't get the path right? or anything? Can you please please help :P THANKS