File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Session Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Session Management" Watch "Session Management" New topic
Author

Session Management

Khelendra Sahu
Greenhorn

Joined: Feb 14, 2007
Posts: 1
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

Joined: Jan 10, 2002
Posts: 60059
    
  65

Issues with the Back button have been discussed seemingly hundreds of times here. Please use the search feature.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
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.


RAGHU<br /> <br />"When the going gets tough, the tough get going"
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Management
 
Similar Threads
session problem
session timeout
session management
Session timeout
Redirect user to login page after session expires