Re: How does Response.Cookies really work with keys?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dave Anderson (GTSPXOESSGOQ_at_spammotel.com)
Date: 04/13/04


Date: Tue, 13 Apr 2004 13:26:18 -0500

JJA wrote:
>
> Is there some property I could add to make Response.Cookies
> merge data into a Javascript written cookie (with keys)
> rather than overwrite it?

I don't understand the question. Are you asking whether you can add to the
Request.Cookies collection? (Answer: no, though I suppose it *might* be
useful in conjuction with Server.Transfer...)

The cookie values can obviously be merged with any other values you like.
But if you want to store those merged values in a cookie on the client, you
have two options: put the values in the Response.Cookies collection or use
client-side scripting to do it.

As for merging -vs- overwriting, who cares how the client deals with the
cookie?

-- 
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.


Relevant Pages

  • Re: navigator.cookieEnabled
    ... >> Attempt to use a cookie. ... See if the client sends ... Unsolicited commercial email will be read at a cost of $500 per message. ... If your question is worth asking, ...
    (microsoft.public.scripting.jscript)
  • Re: How does Response.Cookies really work with keys?
    ... > I am using a single cookie with up to around 20 or so KEY/VALUE pairs. ... "keyed" cookie from both client and server side. ... Unsolicited commercial email will be read at a cost of $500 per message. ... If your question is worth asking, ...
    (microsoft.public.inetserver.asp.general)
  • Re: Problem with cookies in poll script
    ... This, however, will not overwrite the cookie if it's there. ... Regards, ... Michel ...
    (alt.php)
  • Re: Do I need to delete my cookie before re-adding it?
    ... my cookie is set to expire in 1 day. ... This is why I think I need to re-create the ... Or will the new cookie just overwrite the old cookie? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: please explane cookies.
    ... // Here I like to chooce the language ... When I start INDEX.PHP, I set a cookie. ... overwrite it. ...
    (alt.php)