That didn't take long. It's the last flag for the cookie constructor. Need to set it false.

Thanks again for the help.

Jeff

On Nov 10, 2009, at 11:40 PM, Jeff Schmitz wrote:

Yes, beat me by about a minute. I just noticed the security column was checked for that cookie in the browser. Now I just have to figure out why it's making it secure.

Thanks!
Jeff

On Nov 10, 2009, at 11:37 PM, Chuck Hill wrote:


On Nov 10, 2009, at 9:31 PM, Lachlan Deck wrote:

On 11/11/2009, at 4:22 PM, Chuck Hill wrote:

On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote:

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);

erm. Look at that last param. isSecure. That does not mean "Yeah, I think some security would be nice!" It means, only send this cookie over an HTTPS connection. I will be guessing that you are using just HTTP for testing.

Do I win?


Chuck


          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?

NSLog.out.appendln(this.request().headers());

See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow).

And what do Session() and Session().getPoolName() each return?

with regards,
--

Lachlan Deck

--
Chuck Hill             Senior Consultant / VP Development

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      (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