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

How to expire a session? i.e during Logout

Status
Not open for further replies.

vey99

Programmer
Joined
Aug 23, 2001
Messages
13
Location
US
Hi there,

I am doing some pages that require users to log-in.

On login, a bean is created with scope="session". How do I do a logout, i.e expire the session?

If an object is created, say "objData", does this object get "destroyed" when the session is invalidated?
 
You can use this to invalidate the session

session.invalidate();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top