Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of:

http://localhost/cgi-bin/WebObjects/netBrackets.woa/-7777

I'm using WOCookie to set my cookie:

          NSTimestamp expires = new NSTimestamp()
            .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0);
WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true);
          response.addCookie(poolCookie);

I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year.

Then, in my DirectAction function I try to retrieve the cookie:

                        String poolName = (String) 
this.request().cookieValueForKey("POOL");

And NO DICE. No cookies returned at all. And this seems so simple. any ideas?

Thanks,
Jeff





On Jan 10, 2008, at 8:24 PM, Guido Neitzer wrote:

On 10.01.2008, at 19:17, Chuck Hill wrote:

Maybe you are ... I have Yojimbo and my own notes ... ;-)

Well, that's smart, ain't it?

;-)

cug


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

This email sent to jeffandmon...@mac.com

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

This email sent to arch...@mail-archive.com

Reply via email to