Forums Register Login

Close window on JSP Session TIME-OUT

+Pie Number of slices to send: Send
ei Ranchers,
I need a urgent reply for the following issue.

On session time out, my page is directed to a login page (index.jsp). But instead I want the window to be closed

Why i need such a requirement is, I have a main page and various inks in that main page that pops up new child windows. Now, if the user is inactive in the child window and session timesout, I am getting the login page inside the child window, which should not happen..

Is there any control within the jsp like

onSessionTimeOut()
{
closewindow();
}


Thanks,
Rancher
+Pie Number of slices to send: Send
Hi,
Please try the below its a Java script
function logout() //you function name
{
window.close();
}
Regards,
Aravind
+Pie Number of slices to send: Send
Ya, window.close() closes the window.
But how will i know that the session has timed out?

I am mainly concerned on the condition to check whether session has expired.

thanks
+Pie Number of slices to send: Send
I think it you can not close the child window when the session is time out
because session is relate to user, when the session is expire it come to direct login page.
+Pie Number of slices to send: Send
But i dont want the login page. I want to close the window if the session is timed out(since user was inactive on the page).
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
But is it not possible to check without these 2 classes being implemented. Cos, i dont want to update my jar files consisting of all the necessary class files.
+Pie Number of slices to send: Send
Hello "dwky dwky",

please check your private messages.

Thanks,
Ulf
+Pie Number of slices to send: Send
Hi "google",

Please check your private messages.

Katrina Owen
Saloon Bartender
You can't expect to wield supreme executive power just because
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 6939 times.
Similar Threads
How to maintain session in Both Parent window and child window
issue with session on restart of server
Javabean reference
How to call parent window id in child window
Need to avoid openging of page in a new window in IE
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:50:53.