• 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Session Management

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 67530
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67530
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic