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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

http session setattribute

Status
Not open for further replies.

plork123

Programmer
Mar 8, 2004
121
GB
Hello

I'm using httpsession.setAttrivbute()
setting username, password, loggedon, timeloggedon

I want the session to expire after a set time, can someone show me how to do this?

Also, what is the best way to retrive this information as later down the devleopment stage i want to use the credentials passed through to see if user is allowed to access other parts of the site

Thanks for any help
 
Session timeout in Tomcat :

Code:
<web-app>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>

  ...
</web-app>

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top