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 Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management

 
Khelendra Sahu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,
I am a biginner in javaranch

I want to know how can I manage the session of users while creating login pages I tried it using the session attributes ie writing the name of user on the session and then removing it when user logs out but when I press the back button of my explorer it goes to the welcome page

One more thing I want to know is how can prevent one from accessing the welcome page by typing the url

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issues with the Back button have been discussed seemingly hundreds of times here. Please use the search feature.
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this for session management.

Also, if you want to restrict direct access of welcome page, you have to design it in such a way that ot accepts a session object. You should validate that object and decide the flow of rest of the page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Khelendra Sahu:
One more thing I want to know is how can prevent one from accessing the welcome page by typing the url


Hiding JSP pages behind WEB-INF has also been recently discussed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic