WOApp hangs, is it the cookie?
WOApp hangs, is it the cookie?
- Subject: WOApp hangs, is it the cookie?
- From: Baiss Eric Magnusson <email@hidden>
- Date: Fri, 19 Mar 2004 08:02:52 -0800
I posted a question about what was the meaning behind a WO app that
gave a http/servlet response of 200,0 into the Server logs and left the
browser page blank.
I am investigating the possibility that the app just hung.
I am introducing WOCookies into the app, it seems to me that in
development mode there is no way to check if the cookies are doing
anything, i.e. when I run the app in development mode everything works
ok but I don't have any measurement of the success or failure of the
cookie logic. So I had hoped that the cookies would work when the app
was deployed.
At any rate, in my constructor code in Main I have:
NSArray allCookies = context.request().cookies();
curRegionName = context.request().cookieValueForKey( "region" );
if ( curRegionName == null ) {
curRegionName = "Iceland";
cookie = new WOCookie( "region", curRegionName, "/", ".nwSufis.org",
-1, false );
cookie.setExpires(null);
newCookie = true;
} else {
cookie = (WOCookie)allCookies.objectAtIndex(0);
}
Is this not the way to get to cookies if present and to create the 1st
one otherwise?
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.