I am writing one Login/Logout Model using JSP's and servlets.
When I click on logout link, it goes to login page, but when i click browsers back button, it again redirects to previous page.
I want ,When i click on browsers back button, login page itself should refresh.
One more thing, i want to set 15 minutes as session expiration time after that i should move to login page.
i am using web.xml configuration , but i am confused where to use condition to check wheather session is null or not
please give me deatail example