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?
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.