i'm in an urgent need for a complete code for logout from a jsp page.i've tried a number of ways but things didnt work out. just see if anyone can help me out as soon as possible.
-Thanks
Hi sunita Try this out At starting of ur jsp page include a file say checksession.jps which will look somewhat like this CHECKSESSION.jsp <%@ page language="java" import="java.sql.*"%> <% if(session.getAttribute("SomeAttribute")== null) { give ur message and redirect to some page say login page ex:- out.println("<script>parent.location.href='Login.jsp'</script>");
Thanx hth and Praful for the immediate help that you provided me .Praful your code was of greate help . it really worked perfectly well. thanx once again