This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes User Session Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "User Session Management" Watch "User Session Management" New topic
Author

User Session Management

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi All

I am currently working on a web application using Struts.
I have completed the login module where in the user gets authenticated using LDAP & I am currently showing a default simple page.

Now what I want to acheive is a user specific page. I dont have much experience with session management. I want to show a user specific page something like welcome userA & to fetch some data from the database & display it on the page. What should I be doing after the user successfully logs in. I have a few such user specific pages to show once the user logs in. What should I do to maintain & push the session so i can get the user credentials on every such page.

This page should also have a logout option. Should i be having the logout option as a plain link (which invalidates the session) or should i check for the existence of the user in session before displaying the Logout link.

Also this user specific page should not be allowed to be accessed directly via a link (i.e. plain URL ). The page should be accessible only if the user has successfully logged in. How can I implement this check

I reckon these questions seem to be very basic questions related to interactive web site management.

Appreciate all your help

Regards,

Manish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Session Management