• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GRR, still the logout method not working.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRR, still the logout method not working.


  • Subject: Re: GRR, still the logout method not working.
  • From: Susanne Schneider <email@hidden>
  • Date: Thu, 24 Sep 2009 17:48:48 +0200

Hi Gustavo,

this is what we are doing to logout:

1) the logout link returns a logout-page without any real surface where the appendToResponse is overwritten to terminate the session and to redirect to a "you logged out successfully" page. The method is :

public void appendToResponse(WOResponse response, WOContext context) {
// necessary?
super.appendToResponse(response, context);
// finish session
session().logout();
session().terminate();
// redirect
String redirectURL = context.request().adaptorPrefix() + "/" + context.request().applicationName() + ".woa/wa/logout";
response.setStatus(302);
response.setHeader(redirectURL, "location");
response.setHeader("0", "content-length");
}
2) The DirectAction "logoutAction" returns a stateless page with the logout hint. If you want to avoid creating a session on this page make sure that you do not touch anything that needs a session. This is especially true for any form elements or component-action-links.


HTH,
Susanne
--
Susanne Schneider
Coordinator secuTrial Development

iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin

fon    +49(0)30 22 50 50 - 498
fax    +49(0)30 22 50 50 - 451
mail   email@hidden
web    http://www.interActive-Systems.de

----------------------------------------------------
Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B
----------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: GRR, still the logout method not working.
      • From: Gustavo Pizano <email@hidden>
  • Prev by Date: Re: Connector/J 5.1, Euro Symbol as '?'
  • Next by Date: Re: Connector/J 5.1, Euro Symbol as '?'
  • Previous by thread: Re: GRR, still the logout method not working.
  • Next by thread: Re: GRR, still the logout method not working.
  • Index(es):
    • Date
    • Thread