aspose file tools
The moose likes Struts and the fly likes issue with session on restart of server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "issue with session on restart of server" Watch "issue with session on restart of server" New topic

issue with session on restart of server

P.K Gupta

Joined: Jan 05, 2005
Posts: 2
I have a JSP page which creates a child window(displaying some data )on clicking "generate data" button.On this child window i have different functionalities like refresh data, mail data ,etc.

Now after getting the child window i shut down my Tomcat . When i restart
my tomcat.ANd then click anything on the parent window gives me a message saying relogin(it is programmed this way). So i relogin with the same earlier login name and password .

Now the child window which was created before tomact was shut down is still there . And if i click the REFRESH button on this window (...or any other button ) the data refreshes,. But the expected behavior is that it shoul say that This window has expired and it should close ... This is my problem...

Actually to check that whether a page has expired .i check for the session id of that page and the login credentials stored in session . Now when i do session.getId() in the action class that is called on clicking REFRESH gets the session from parent page .But this parent page is valid now as i logged in again after restarting the Tomcat.

So how do i in validate this child page ???
Or tell me a way to close all the child pages of a page when i relogin( But i do not have any reference of child window... neither their name or object)
jQuery in Action, 2nd edition
subject: issue with session on restart of server