This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Login Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Login Page " Watch "Login Page " New topic
Author

Login Page

Gaurav Bagha
Greenhorn

Joined: Sep 20, 2011
Posts: 1
Hi,
I want to create an application with a login page.But once the user enters his credentials and click on the button and a new page appears,he must not be able to go back to login page unless he logs out i.e back tab of browser must be disabled or something.How to do this?
ntumba lobo
Ranch Hand

Joined: Oct 21, 2008
Posts: 180
Basically you want to break a default browser behaviour (back button). It could be confusing for an end user.
After logining in successfully and being presented a new page, if the user presses the back button in the browser what should he see ? the same page again, a default home page ?

Anyway if you have to implement this feature the solution will depend on you have currently in place in your application in term of techno and authentication model.
But I think the HTTP session will have a role to play


SCJP 5 , SCWCD 5, SCEA 5
Sushil Jamsandekar
Greenhorn

Joined: Aug 11, 2008
Posts: 14
you can use intercepting filter to filter out the request. Check in session if user is logged in and prevent the request going to login page


SCJP 1.4
Preparing for SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Login Page
 
Similar Threads
how to sign out of my application
how to make logout page?
Servlet-5
how to design logout page?
Invalid session