• 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: logOut method its not working as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logOut method its not working as expected


  • Subject: Re: logOut method its not working as expected
  • From: Gustavo Pizano <email@hidden>
  • Date: Wed, 8 Jul 2009 16:20:49 +0200

I was reading... so I have to overrride the
isStateless

method?

G

On Wed, Jul 8, 2009 at 4:12 PM, Gustavo Pizano <email@hidden> wrote:
MMM first time I heard the _expression_, i guess its stateful,  what can I do then?

G


On Wed, Jul 8, 2009 at 4:04 PM, Catherine Ferris <email@hidden> wrote:
Hi Gustavo,

Is your logout page stateful of stateless ?

If it's stateful then the displaying the page will create a new session automatically.

Catherine Ferris

e-mail: email@hidden

web: http://www.tycho.org.uk/


On 8 Jul 2009, at 14:21, Gustavo Pizano wrote:

Hello I have the following in the WOComponent

<wo:WOHyperlink id ="logOut" class = "moreButton" action = "" Out</wo:WOHyperlink>
in the .java. I have the follwoing:

       /**
  * Simple logout action that leaves the user on the page returned by the default
  * Direct Action.
  * @return <code>WORedirect</code> to default Direct Action
  */
     public static final NSDictionary noWOSID = new NSDictionary(Boolean.FALSE, "wosid");
     public WOComponent logOut(){
         session().terminate();
         WORedirect mainPage = (WORedirect) pageWithName("WORedirect");
         mainPage.setUrl(context().directActionURLForActionNamed("logOut", noWOSID));      
         return mainPage;
     }

and in the directaction :

   /**
     *
     * @return The result of gettign the Action of Log out
     */
    public WOActionResults logOutAction(){
       
        return pageWithName(LogOutPage.class.getName());
    }

I have nothing in the LogOutPage, just a "LogOut Succesfull".  but if I click the back button Im still inside the application, and can keep working on it.... :S

why is this?

Thanks

Gustavo

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)

This email sent to email@hidden


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


 _______________________________________________
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: logOut method its not working as expected
      • From: Gustavo Pizano <email@hidden>
References: 
 >logOut method its not working as expected (From: Gustavo Pizano <email@hidden>)
 >Re: logOut method its not working as expected (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: And the beat goes on...
  • Next by Date: Re: logOut method its not working as expected
  • Previous by thread: Re: logOut method its not working as expected
  • Next by thread: Re: logOut method its not working as expected
  • Index(es):
    • Date
    • Thread