• 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
Re: Setting a COOKIE in redirect object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting a COOKIE in redirect object


  • Subject: Re: Setting a COOKIE in redirect object
  • From: Jeff Schmitz <email@hidden>
  • Date: Tue, 31 Jul 2007 11:43:26 -0500

Thanks! that worked.  Nasty bug in WO.

Now, I have a cookie question that seems to cause weird behavior too.

I'm setting a cookie with the following code:

 WOCookie atpCookie = new WOCookie("ATP_PID_1004", encryptedValue);
    redirect.setUrl(url);
  response.addCookie(atpCookie);
 redirect.appendToResponse(response, context());
    return redirect;

When I retrieve and print out cookies on the invoked page using this code:

System.out.println("login cookie values: " + this.request().cookieValues().toString());

I get:

login cookie values: {ATP_PID_null = ("b3c6bd86effa3de9b4c6c410c22f98"); }


Why is the name of my cookie getting changed from ATP_PID_1004 to ATP_PID_null?

Thanks,
Jeff

On Jul 31, 2007, at 10:49 AM, Zak Burke wrote:

Jeff Schmitz wrote on 7/31/07 11:28 AM:
However, when I pick up the parameters on the other side, there is a stray "&amp;" being added before the NICK parameter. 

[...]

When I print the dictionary out it shows:
login Hyperlink values: {amp;NICK = ("FireBreathers"); USER = ("1004"); amp;wosid = ("a1snzyY9gzOgLCObCkS5kg"); }


Actually, it looks like a stray "amp;" rather than "&amp;" which makes me think WO is double-encoding the ampersands.
See this recent post:

http://lists.apple.com/archives/webobjects-dev/2007/Jul//msg00640.html

and this older one:

http://lists.apple.com/archives/webobjects-dev/2006/Feb/msg00451.html

zak.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting a COOKIE in redirect object
      • From: Jeff Schmitz <email@hidden>
References: 
 >takeValueFromRequest phase (From: Lachlan Deck <email@hidden>)
 >Setting a parameter in redirect URL (From: Jeff Schmitz <email@hidden>)
 >Re: Setting a parameter in redirect URL (From: Zak Burke <email@hidden>)

  • Prev by Date: Re: Multiple submit button form
  • Next by Date: Re: Setting a COOKIE in redirect object
  • Previous by thread: Re: Setting a parameter in redirect URL
  • Next by thread: Re: Setting a COOKIE in redirect object
  • Index(es):
    • Date
    • Thread