Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Tracing modified cookies

Reply
Thread Tools

Tracing modified cookies

 
 
Darin
Guest
Posts: n/a
 
      09-30-2004
I hope this is the appropriate discussion group...

To update a cookie that already exists in the request, I'm calling
Response.Cookies.Add(...) The debugger indicates that Response.Cookies then
contains one object, as I expected.

When I enable pageOutput tracing, however, the Cookies Collection section
shows the cookie name twice, apparently with the old and new values.

Why is it appearing twice? Does this section simply mix values from the
Request and Response cookie collections, or do I need to delete it somewhere
before adding it to Response.Cookies?

Thanks!


 
Reply With Quote
 
 
 
 
[MSFT]
Guest
Posts: n/a
 
      10-06-2004
Hello,

Is it an ASP.NET issue? If you delete all clients cookie in IE and test
again, will the problem disppear?

Luke

 
Reply With Quote
 
 
 
 
Darin
Guest
Posts: n/a
 
      10-06-2004
Yes, ASP.NET.

The cookie is an authentication cookie for a custom authentication system.
After I 'log out', the cookie goes away as expected so it doesn't seem to be
an IE issue.

It's possible that Trace simply shows request AND response cookies in the
same list, so that when you update a cookie it appears twice (once for the
cookie header in the request and again for the cookie in the response). I
just wanted to verify that it's not a bug in my code that's making it appear
twice.

"[MSFT]" wrote:

> Hello,
>
> Is it an ASP.NET issue? If you delete all clients cookie in IE and test
> again, will the problem disppear?
>
> Luke
>
>

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      10-07-2004
Based on my experice, this may happen after a post back on the web page.
Anyway, the value and idex of cookie won't be changed. Normally, this
won't cause a problem. We can ignore it in development.

Luke

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      10-07-2004
Furthermore, you may check your code to see if the cookie can be added
twice in server side code, this also can cause such a problem.

Luke

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      10-08-2004
Any futher questions on this issue? If there is still any concerns, please
feel free to let me know.

Luke

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies? _Who ASP .Net 7 09-18-2008 07:49 PM
What's the proper way of reading cookies? Request.Cookies("mycook") doesnt work user ASP .Net 3 03-31-2007 01:53 PM
Response.Cookies vs Request.Cookies Alex Nitulescu ASP .Net 1 02-03-2005 09:43 AM
Persistent Cookies vs. session cookies Andy Fish Java 3 11-06-2003 10:44 AM
Good Cookies bad Cookies? AK Computer Support 23 10-26-2003 05:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57