I am working on a SpringMVC application I need to make a logout page. I make the page but when I click the back button on the browser I can see the user data.
How can I prevent the user to access the history after logout the application. Please tell me a solution without using Spring-security.
I am using the following handler method for logout the application.
@RequestMapping("/logout")
public String logout(HttpServletRequest request)
{
request.getSession().invalidate();
return "index";
}
Thank you