• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Login Page

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic