HI All,
i'm trying to build a web page which permits the user to login before accessing the contents of the site. the login works fine (i did it using
jsp), but i am not able to logout properly, that is, when i click on a "logout" hyperlink, it sends me to the proper page, but when i do "back" on my explorer, it gives me the previous page again. so my logout is pointless.
can anyone tell me how to prevent this from happening please?i don't know if i should use jsp, javascript or html to do this.
i need this urgently for my project.
thanks for replying as possible
My Log Out Code:- <%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%
session.invalidate();
session=request.getSession(true);
response.sendRedirect("login.htm");
%>