Nope tried it not doing anything.
The purpose is really when a session timeout, I want to auto-logout (got that working) THEN redirect to say login page automatically without user clicking anything.
by the way I'm using a regular
java class implementing the HttpSessionListener interface, with sessionDestroyed() method taking HttpSessionEvent as parm. So technically I'm not using or have access to HttpServletResponse or its sendRedirect() method.
Yet if I did have access to HttpServletResponse (say make it into a
servlet by extending HttpServlet) then ... tried that too but got a "java.lang.IllegalStateException: ServletConfig has not been initialized
" exception. I did
Any idea on how to initialize the ServletConfig?
[ June 19, 2008: Message edited by: K. Tsang ]