This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sessions" Watch "sessions" New topic
Author

sessions

sharathchandra sabbani
Greenhorn

Joined: Oct 15, 2007
Posts: 13
when ever user logs into the system i want to create a session for the user.how to do this...
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Your web server and/or application server pretty much does this for you. Do you have specific questions or issues?

- Brent
andres matus
Greenhorn

Joined: Dec 21, 2007
Posts: 15
you can put a user object in the request session...that way you have the user information all over your app.

use this....
//setting the user information on the session
request.getSession().setAttribute("UserSession",UserObject);

//reading the user information from the session
UserObject user = (UserObject)request.getSession().getAttribute("UserSession");


Be free...do what ever you whant
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sessions
 
Similar Threads
Field set in action method coming null in JSP
Session problem in NetBeans
ASP
ASP
How to know the last visited user in webpage