Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Session variables

Status
Not open for further replies.

technohead

Technical User
Jan 12, 2002
64
0
0
US
Hi i want to use session variables to hold info on a user when they log in. im using jsp pages.
anyone any ideas what to do?
thanks
 
You can get the session by using the getSession method on the request. You then can put an object into the session by using either the putValue or setAttribute method on an HttpSession depending on which version of the servlet API you are using.

-gc "I don't look busy because I did it right the first time."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top