Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Javascript Cookie

Status
Not open for further replies.

Ladyhawk

Programmer
Joined
Jan 22, 2002
Messages
534
Location
AU
Here's the deal... I am trying to hook to a purchased system which was written entirely in JavaScript. It creates a cookie (in Javascript) through the following lines of code...

strItems = "items=" + arrItemTmp.join("&");
document.cookie = strItems + "; expires=" + dtExpiry.toGMTString() + ";";

So can I assume that the cookie name is "items"?

I tried looking through all of the cookies in .NET (VB)...

For i = 0 To Request.Cookies.Count - 1
Response.Write(CStr(i) & " = " & Request.Cookies(i).Name)
Next

... but there is no mention of any cookie.. even though I know the cookie exists.

Please help... how do I read the cookie created in JavaScript via .NET?

Cheers,



Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top