posted 22 years ago
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>");
}
%>
and on logout write this code
<%
session.invalidate();
out.println("<script>parent.location.href='Login.jsp'</script>");
%>
Hope this solves ur problem
cheers
[ April 10, 2003: Message edited by: Praful Thakare ]
All desirable things in life are either illegal, banned, expensive or married to someone else !!!