This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question related to banking project?

 
Sneha Latha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q.) Friends if anybody worked for online banking project,Please do help me with your answers for the following question?

When a customer logs-in into his account, and then after entering into his account, he clicks the go Back button . Then he should see the error Page instead of the Bank Log-in Page. How can we do this? Please explain the technical part to do this?
 
Naresh Narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope you would be coding a Servlet to authenticate the user.
Once the user is authenticated the user bean has to be saved to 'Session' so that other pages can use it for preferences and other stuff.

So coming to the point if the user clicks 'Back' button, same URL would be called there by directing the request to the same Servlet.

In the Servlet check if session's user attribute is not null then forward to 'error page' else authenticate the user and preserve it in the session.

Hope this helps.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you referring to the back button of a browser? If so, why have this back button for a secure application? It would be best not to have it at all and instead have a link on the web page to take the user back to a previous page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic