session.setMaxInactiveInterval(time) will invalidate the session - if you want to do more than that, you can add a HttpSessionBindingListener to the session. When the session is invalidated, the listener will get called and you can clean up stuff. Bill
Hi!, The session can get invalidated after a predefined time interval. But you can not expect the page to get changed automatically. When the user will try to interact with the system, the page will change only then. There is nothing simpler that page will get changed automatically after say 15 min when the session expires becuase for that a program must check the status of session at a definite interval of time and if the session is invalidated it must change the page. Thst is ofcourse session binder.
Originally posted by Yongping Wang: HI, How to implement a code which can automatically logout a current user if the user doesn't do any request to server, say in 15 minutes interval? Any ideas? Thanks. Yongping
------------------ Vikas Aggarwal Technology Associate Shakun Global Networks [This message has been edited by vikinsa aggarwal (edited June 22, 2001).]