
i have developed a web appilcation using jsp and when user try to logout, session is not clearing even though i have used session.invalidate() and session.removeAttribute("username"); session.removeAttribute("type"); When i press back button of browser it redirects to previous page of the user.
my code for logout is <% session.removeAttribute("username"); session.removeAttribute("type"); //session.removeAttribute("Data"); session.invalidate(); response.sendRedirect("Login.jsp"); %>
thanks in advance.....
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.