In my Appl,
I have a logout page in jsp called logout.jsp.
After loggin out , if i hit the back button of the browser ...it takes me again to the server.
if i add
getSession().invalidate() method and hit the back button ..it gives a server error.
I need my application to be:
After loggin out ...if i git the back button...automatically it should take me to login screen.
can any one help.....please.
-
logout page in JSP-Urgent help me please (3 messages)
- Posted by: Syed Imthias Basha
- Posted on: December 11 2000 16:58 EST
Threaded Messages (3)
- logout page in JSP-Urgent help me please by Kari Sarsila on December 12 2000 03:17 EST
- logout page in JSP-Urgent help me please by sundar varadarajan on December 13 2000 07:26 EST
- logout page in JSP-Urgent help me please by Kishore V.A.V.K. on December 21 2000 13:18 EST
-
logout page in JSP-Urgent help me please[ Go to top ]
- Posted by: Kari Sarsila
- Posted on: December 12 2000 03:17 EST
- in response to Syed Imthias Basha
if you do this in servlet, you could use response.sendRedirect.(I guess you can do this in jsp too)
try
...
session.invalidate();
response.sendRedirect("login.html");
Kari Sarsila -
logout page in JSP-Urgent help me please[ Go to top ]
- Posted by: sundar varadarajan
- Posted on: December 13 2000 07:26 EST
- in response to Syed Imthias Basha
hi
on each and every page, check whether session exists
u can include it as a file
<jsp: include file ="some file.jsp">
use response.redirect(response.EncodeURL("login.html"?)
try this
sundar -
logout page in JSP-Urgent help me please[ Go to top ]
- Posted by: Kishore V.A.V.K.
- Posted on: December 21 2000 13:18 EST
- in response to Syed Imthias Basha
You Can use JavaScript for this. In the logout page, write a javascript code. This code will take care of back button pressed. WHen back button is pressed then set the url as login.html or to some other page which you want. I think this helps you.