RE: Logout Szenario

2003-10-21 Thread Higdon, Brian [VIS-Non JJ]
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]


RE: Logout Szenario

2003-10-21 Thread Nicholson, Robb
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 JJ] [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]


Antwort: RE: Logout Szenario

2003-10-21 Thread Manuel Lenz





Yep, thanks, that´s it!

Manuel



|-+-
| | |
| | |
| | |
| |Nicholson, Robb|
| |[EMAIL PROTECTED]|
| |21.10.2003 15:31 |
| |Bitte antworten an Struts Users |
| |Mailing List|
| | |
|-+-
  
|
  |
|
  | An:  'Struts Users Mailing List' [EMAIL PROTECTED]   
   |
  | Kopie: 
|
  | Thema:   RE: Logout Szenario   
|
  
|




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 JJ] [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]




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