On Aug 20, 2006, at 8:04 PM, Drew Thoeni wrote:

Based on research on the list, I've modified my sign out method to (hopefully) terminate sessions appropriately.

However, I can check in JavaMonitor and see a new session created when I sign in but the session sticks around when I sign out using this method:

    public WORedirect signOut() {               
        WORedirect nextPage = new WORedirect(context());
nextPage.setUrl(context().directActionURLForActionNamed ("signOut",null));
        session().terminate();
        return nextPage;        
    }


And here's the .wod from the page "SignOut":

Common1: Common {
}

Hyperlink1: WOHyperlink {
        href = "http://www.quaq.com/segment";;
}

And the method in DirectAction.java

    public WOActionResults signOutAction() {
        return pageWithName("SignOut");
    }

The only thing I can think of is the fact that the SignOut page is wrapped with a Common page for consistency with the rest of the site. Any ideas on why these sessions would hang around?


Some binding in Commom.wod?  Code in Common.java?

Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to