473,473 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reading cookies in both ASP and ASP.NET pages


I have a mix of ASP pages and ASP.NET pages within a web site. One of the
first asp pages creates several cookies with values. When I try to read
those same cookie values in the ASP.NET pages the values are not seen. Is
this a issue with defining the cookie path in the ASP.NET page? The cookies
are whereever they are stored by the older ASP page so what should the path
be on the asp.net side (if that is the issue.) Otherwise how can I see the
older ASP page created cookies?
May 2 '07 #1
3 1166
Try making sure the Path attribute of the cookies is the same in both
frameworks, e.g. Path ="/"

Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Patrick Dugan" wrote:
>
I have a mix of ASP pages and ASP.NET pages within a web site. One of the
first asp pages creates several cookies with values. When I try to read
those same cookie values in the ASP.NET pages the values are not seen. Is
this a issue with defining the cookie path in the ASP.NET page? The cookies
are whereever they are stored by the older ASP page so what should the path
be on the asp.net side (if that is the issue.) Otherwise how can I see the
older ASP page created cookies?
May 2 '07 #2
It is set to the same path in both the asp and asp.net pages of "/"
Some asp.net pages actually DO see the values but others under sunbfolders
do not see the values

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:E4**********************************@microsof t.com...
Try making sure the Path attribute of the cookies is the same in both
frameworks, e.g. Path ="/"

Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Patrick Dugan" wrote:
>>
I have a mix of ASP pages and ASP.NET pages within a web site. One of
the
first asp pages creates several cookies with values. When I try to read
those same cookie values in the ASP.NET pages the values are not seen.
Is
this a issue with defining the cookie path in the ASP.NET page? The
cookies
are whereever they are stored by the older ASP page so what should the
path
be on the asp.net side (if that is the issue.) Otherwise how can I see
the
older ASP page created cookies?

May 2 '07 #3
Finally found the issue. It was simply syntax error on my part. I used
"value" instead of "values" which did not work correctly (obviously)
Thanks for your help!

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:E4**********************************@microsof t.com...
Try making sure the Path attribute of the cookies is the same in both
frameworks, e.g. Path ="/"

Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Patrick Dugan" wrote:
>>
I have a mix of ASP pages and ASP.NET pages within a web site. One of
the
first asp pages creates several cookies with values. When I try to read
those same cookie values in the ASP.NET pages the values are not seen.
Is
this a issue with defining the cookie path in the ASP.NET page? The
cookies
are whereever they are stored by the older ASP page so what should the
path
be on the asp.net side (if that is the issue.) Otherwise how can I see
the
older ASP page created cookies?

May 2 '07 #4

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

Similar topics

1
by: Hal Vaughan | last post by:
I'm trying to access a site with data that needs to be paged through, one page at a time. It won't allow back buttons and you have to use the menu links to get through. In other words, it is run...
5
by: Kevin Blount | last post by:
I've setup a method (C#) that I can call, passing it a cookie name, then a name-value pair. The idea is that as I can't append to a cookie, I read the cookie value, append by name=pair to the end...
29
by: Jerim79 | last post by:
I did try to find the answer to this before posting, so this isn't a knee jerk reaction. What I am trying to accomplish is to have a script that opens a cookie, reads a value, and then use a...
8
by: Chuck Anderson | last post by:
I've instituted a sessions based scheme on my web site to combat hot linking to my images. When someone requests a page at my site, I set a session variable. I then use htaccess to redirect *all*...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.