• 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

terminate the session

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
how can terminate the session after click on browser back button....through javascript.

i m using.....
<script language="javascript" type="text/javascript">

function backButtonPressed(arg)
{
if(arg==false && closeSession==true)
{
alert('Before Terminating Session');
window.location="http://localhost:8080/BookSale/ErrorPage.jsp";

}
}
</script>

call this function on
<body onunload="backButtonPressed(false)">

its working with IE browser. but with mozila browser. its giving problem....
Can anybody Help?


regards
success
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"success aas", welcome to JavaRanch. Please check your private messages. You can see them by clicking My Private Messages.

Your question does not belong in the forum about the SCJP exam. I am moving it to a more appropriate forum for you. Please carefully choose a forum when you post a question.
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic