• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Page close on TimeOut

 
Harish Tam
Ranch Hand
Posts: 71
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am looking for some guidance on closing the browser window on session expire,
currently the code works for Single window only if session expires and i click on any link which will redirect to some page within the same browser then the browser window gets closed on session expire but my problem is say if i have a link which opens a pop-up window then the code get executed on the pop-up window and the pop-up gets closed but the parent window stays as it is. is there a way i can close also the parent window on click of the link.

Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note: If the window is not created with window.open() you can not close it.

I think you are after: window.opener.close();

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic