473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Tracing modified cookies

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!
Jul 19 '05 #1
5 1104
Hello,

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

Luke

Jul 19 '05 #2
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

Jul 19 '05 #3
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

Jul 19 '05 #4
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

Jul 19 '05 #5
Any futher questions on this issue? If there is still any concerns, please
feel free to let me know.

Luke

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Trace User | last post by:
Hello, I have a design question regarding Tracing and Trace Switches. I understand that Trace Switches can be configured through an application's .config file. When a switch is instantiated,...
0
by: Paul Ibison | last post by:
HI when I have a page which calls a component I want to do the following - tracing set to false on the pag tracing set to true in the componen tracing set to false in the page after the call to...
5
by: Dabbler | last post by:
When I first start up an ASP.NET application with tracing enabled in web.config the first few pages show trace at bottom of the page but then at some point the pages return to normal with no trace...
6
by: serge calderara | last post by:
Dear all, I have an applicatin that generate a querry to an SQL server, then display results on a second webform. I try to see how tracing works, then I have notice that as soon as I...
2
by: deepukutty | last post by:
Hi all, I know tht we can do tracing in two ways.one in application level and the other is at Page level. I am able to see the details of trace either on the page itself or .../trace.axd page....
12
by: sandravandale | last post by:
It's important that I can read the contents of the dict without flagging it as modified, but I want it to set the flag the moment I add a new element or alter an existing one (the values in the...
0
by: cnys | last post by:
We have an ASP.NET 2.0 (C#) app and we're trying to add tracing into it. The tracing functionality within .NET is great, but when we output this to a file, it's kind of sparse. So, we're looking...
0
by: GB | last post by:
All, There's a few messages around about the Environment.GetResourceString causing a "Resource lookup failed - infinite recursion detected." error but nothing detailed. I have a problem...
0
by: rehto | last post by:
We have an ASP.NET 2.0 (C#) app and we want to enable tracing (see the code snippets below). The first time a user navigates to the app., the tracing works fine (the ASP.NET tracing appears on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.