Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

how to design logout page?

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
session.invalidate()
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.
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi,
u can go here http://www.jguru.com/faq/view.jsp?EID=377 and see if it helps.

Piyush
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
"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
Posts: 44
  • Mark post as helpful
  • send pies
  • Report post to moderator
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...
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion here - same post.
Thanks.
- madhav
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!