This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes how to design logout page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

how to design logout page?

honey singh
Ranch Hand

Joined: Apr 26, 2002
Posts: 44
I'm making an application in JSP and I want to make a logout page such that when the user clicks on it he must again the login page..
I'm doin' this by invalidating the session object
and by directing it to login page
Now the thing I want is that when the user clicks on the back button of browser after logging out..he must always get the login page only..
thanx in advance.
Piyush Daiya
Ranch Hand

Joined: Jun 13, 2002
Posts: 67
u can go here and see if it helps.


"A scientist is not person who gives right answers but a person who asks right questions"
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

"harmanjeet s"-
Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy. Particularly, it should be a first name <space> full last name.
You can change it here.
Thanks! and again welcome to the JavaRanch!
honey singh
Ranch Hand

Joined: Apr 26, 2002
Posts: 44
I'm posting the reply to my own question...I had asked about making logout page...Somebody told me that we can check the user action if he is clicking the back button of the browser and check the session object for particular userId..if it doesn't exist, then redirect to Login page...but please can anybody tell me how to check this user action that he is clicking the back button of the browser?
thanx in advance...
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Please continue the discussion here - same post.
- madhav

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: how to design logout page?
It's not a secret anymore!