Yup, we have a LogoffAction class with 2 lines of code (besides the logging
stuff):

// invalidate the session to log off user
httpServletRequest.getSession().invalidate();

// forward to a page that says "you've been logged off..."
return actionMapping.findForward(WebKeys.PG_LOGGED_OFF);


-----Original Message-----
From: Higdon, Brian [VIS-Non J&J] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 9:07 AM
To: 'Struts Users Mailing List'
Subject: RE: Logout Szenario


Will this work for you:

HttpSession.invalidate()

Read the man pages here:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/

-----Original Message-----
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 8:56 AM
To: Struts Users Mailing List
Subject: Logout Szenario







Hi to all,
this might be a simple question, but I didnīt find any good hints in the
internet.
I will do a logout szenario in my struts-web-application.

I just did this:
- Calling an ActionClass which creates a new LoginForm-Object
- Replacing the existing LoginForm-Object in the session

But after the new login-process the old object are still available.

How can I do an logout whick kills all the existing objects?

Hope somebody can help me,
greetings,
Manuel



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to