I am working with java 开发者_StackOverflow中文版and jsp for mail project. I want to redirect the page with xml r by some way when the session is expired or I want to deactivate the window when session is expired.
thanks in advance.
If I understood you correct you want the Webbrowser to change to another page, if the session expires.
There are some ways to do this:
- Javascript redirect with
setTimeout(location.href='/logoff.jsp', 3600)
- MATA-Tag REFESH:
<meta http-equiv="refresh" content="3600; url=/loggedoff.jsp">
In both examples, the session invalidates after 3600 seconds. You should redirect the browser slightly before the session invalidates, just to be sure.
精彩评论