Hi Everyone...I have an app deployed on Tomcat 6.0.16 and it appears that context().hasSession() is failing to produce reliable results. In my Main WO I have:
public Boolean authenticated() {
return (context().hasSession() &&
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);
}
and in my Main WO, that resolves to false, and then true. I'm not
calling session() anywhere. I'm logging session creation in my
Application.createSessionForRequest method and the session *should*
exist before the first call. It's also failing in my logout direct
action
public WOActionResults logoutAction() {
if(context().hasSession()) {
NSLog.out.appendln("Terminating session: " +
session().sessionID());
session().terminate();
} else {
NSLog.out.appendln("logoutAction(): context().hasSession() ==
FALSE");
}
WORedirect mainPage = (WORedirect)
pageWithName(WORedirect.class.getName());
mainPage.setUrl(
context().directActionURLForActionNamed(
"default", new NSDictionary<Object,Object>(Boolean.FALSE,
"wosid")));
return mainPage;
}
All of this works fine in WOLips. It's failing on Tomcat. I'm using
WO 5.3.3 and Wonder. Is this a known bug with a known workaround? Am
I doing something dumb? Any help/advice/insight would be appreciated.
Thanks all!
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
