how can i read cookies created with javascript using ASP??

Gow

Member
Aug 10, 2000
35
0
0
Hi everyone :)

I have a problem with cookies.....

I can create a cookie using javascript, i can also create one using ASP...

The trouble is that i want to read the cookie created in javascript using ASP so i can store the values in a database...

When a cookie is created using ASP It's easy to read using response.cookie("name")("key")...

But i can't seem to get this method of reading a cookie to work with the cookie created in javascript,
or do i have to build a function using Intstr() and such???

Any help would be greatfully accepted...

Thanks In advance :)

Gow
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Sounds like javascript is using a different domain for the cookies it sets than ASP, you might go to asp1-1.com or msdn.microsoft.com to see how to peek at the raw HTTP headers sent by the browser after you set both kinds of cookies to see if this is the case.