Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bakir Farooq   on Apr 07 In Java Category.

  
Question Answered By: Alyssa Campbell   on Apr 07

you can solve your problem adding a javascript in your logout button  or
link.

make a redirect to your login.jsp page  then add a script
location.replace("login.jsp").

ex.
function doLogout()
{
window.location = "login.jsp";
window.replace("login.jps");
}

but you still have a problem, user could call a page throught the url, so don´t
forget to destroy your session and configure your login
page in yout web.xml when session is destroyed.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on help with JSP code for back button in IE Or get search suggestion and latest updates.


Tagged: