A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to maintain session in Both Parent window and child window
Joined: Jun 23, 2008
Jan 23, 2009 08:29:39
I am using session concept in application.
After login my application the Main screen screen is comming which we call parent window.
Under the parent window serverral child window are comming.
Suppose i click one child window under the that same parent window and when session time out.
if i do any operation in child window then session message comming and saying"Session time out".
It will close only child window.
My doubt is if session is time out if we also in clind it should aslo close parent window.But in my
case when session expire if you performed something if child window it also close parent window.
if you do some work in parent window and open clild window then clind window close at the session expire time.
Viceversa situation not working.
For example.:Login.jsp(Firstpage)Once we login then we goto home.jsp(Parent window)
Under the parentwindow serveral submenu is thier and child link also thier.
When we open submenu underHome.jsp do some work and same time onen child window and
session expire it will go to Login.jsp(Which is correct).
But if we open clild window and do some work and session expire it only close child window.
again we click parent window then it come to Login.jsp..
Could you please advise me on session expire The child window and parent should close automatically
if we perform anything in any window(Parent window and child window).
Please advise me for the neeedful.
Thanks in advance
Joined: Oct 08, 2006
Jan 23, 2009 08:32:11
Code depot of a Java EE / JSF developer
JSF / Eclipse / Tomcat kickoff tutorial
DAO kickoff tutorial
I ♥ Unicode
Author and ninkuma
Joined: Jan 10, 2002
Jan 23, 2009 08:41:30
You cannot close a window you did not open. So if your parent window is not one that was opened with
you cannot close it. Why would you want to? How rude would that be?
Books by Bear
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to maintain session in Both Parent window and child window
JSP page on closing the parent window the child windows should close automatically.
window.open parent and Child
Close window on JSP Session TIME-OUT
How to close parent when child forwards to new URL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013