Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Session Management  RSS feed

 
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

 
Author and ninkuma
Marshal
Posts: 66807
168
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.
 
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
Posts: 66807
168
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
Boost this thread!