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

Disappearing cookie

Status
Not open for further replies.

rmckbrown

Programmer
Apr 24, 2002
6
US
I have an ASP application where a cookie is set when default.asp is executed. But, when the user is taken to a different ASP within the same site the cookie disappears. Any idea why a cookie would disappear from ASP to ASP?

Thx.

R
 
I'm not setting an expiration date on the cookie. Even with no expiration the cookie should live to for the life of the browser, correct?
 
Correct.
I assume you have checked for typos (specifying another cookie name in the Request read than in the Response write)?
 
Is this happening on your computer or other peoples? It might be possible that they are using one of those "cookie killer" programs that constantly cleans out cookies.

I am not sure how those programs work, but it seems like a reasonable posibility.

Kris
 
It appears that setting the cookie's domain propery is causing the problem. If found, barried deep in the code, that the cookie's domain was being set. Although, there's one thing that I'm not clear on. When I set the domain to an IP address it works fine, but if I use a DNS name the cookie disappears. Could this be a DNS lookup problem? For now I have no need to share the cookie with any other sites so I'm not setting the domain property.


Thanks for your help and suggestions...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top