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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cookies could not be retrieved with javascript

Status
Not open for further replies.

gizzy17

Vendor
Joined
Nov 6, 2003
Messages
141
Location
US
I have an web application that allows a user to store their selection criteria in cookies and retrieve them for later use. This has been working fine for more than a week, but this morning, no user could use or retrieve their cookie. They could save the cookie and you could view it in the cookie file in the temorary folders directory, but using javascript:alert(document.cookie) would return a blank value. ASP could retrieve the cookie without any problem though. Deleting the cookie from the temporary folders directory and the cookies directory (in Windows 2000) solves the problem.

Has anyone come across this type of behavior before?
 

I've not seen this problem before - where unchanged code suddenly stops working.

So, assuming the code has remained 100% unchanged, maybe a newly-applied security patch has broken things. But if I were you, I'd want to be 100% sure that none of the code has changed - not even 1 byte - before searching elsewhere.

Hope this helps,
Dan
 
No code changes. Even then, I should have been able to look at the cookie using alert(document.cookie) from my asp page but request.cookie("mycookie") existed. Once I deleted the cookie file on the client machine and rebuilt my cookie values, javascript would then show the document.cookie.

Just weird...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top