• 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
WOApp hangs, is it the cookie?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: WOApp hangs, is it the cookie?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: 5.2.3 Boolean Bugs?????
  • Next by Date: Re: Boolean and 5.2.3 my experience
  • Previous by thread: Another one in addition to the internal server error
  • Next by thread: Re: WOApp hangs, is it the cookie?
  • Index(es):
    • Date
    • Thread