• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

issue with session on restart of server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ..it 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 ..it 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)
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic