Note that there are some explanatory texts on larger screens.

plurals
  1. POa cookie that refuses to delete
    text
    copied!<p>I am having a problem with deleting cookies in classic ASP. Setting and retrieving the cookies is working wonderfully, without problems, on multiple domains. Deleting the cookies is not.<br> The cookie that refuses to delete will time out and remove itself on the original timeout, but that is not an option.<br> I've looked through the documentation, stack overflow, Stack Exchange (web applications) (some of the problems are similar and gave me some of the answers, but not the same), cookie central, and MSDN.<br> Updating the pages to ASP.NET is not an option at this time. The cookie values and names are in hexadecimal with a leading "O" to eliminate any possible problems with the encrypted data and the scripting languages (ASP, VBScript, Jsvascript, SQL) having problems with the characters.<br> Note that some of the different attempts are commented out.<br></p> <pre><code>Sub Set4HrCookie(ByVal CookieName, ByVal CookieValue) Response.Cookies(CookieName).Expires = DateAdd("n", 240, Now()) Response.Cookies(CookieName).Domain = ".mydomain.net" Response.Cookies(CookieName).Path = "/" Response.Cookies(CookieName) = CookieValue Response.Cookies(CookieName).Secure = FALSE End Sub Sub Set1DayCookie(ByVal CookieName, ByVal CookieValue) Response.Cookies(CookieName).Expires = Now() + 1 Response.Cookies(CookieName).Domain = ".mydomain.net" Response.Cookies(CookieName).Path = "/" Response.Cookies(CookieName) = CookieValue Response.Cookies(CookieName).Secure = FALSE End Sub Sub KillThatCookie(ByVal CookieName) Response.Cookies(CookieName).Domain = ".mydomain.net" Response.Cookies(CookieName).Path = "/" Response.Cookies(CookieName).Expires = Now() ' Now() - 1 ' #01/01/1999# ' Response.Cookies(CookieName).Secure = FALSE Response.Cookies(CookieName) = "" End Sub </code></pre> <p>An example of a cookie that is refusing to delete:</p> <pre><code>O9DCCF20B15CA0F382184A96BAB OFA86B660438C4863797E4485DE mydomain.net/ </code></pre> <p>The following are some of the URLs that gave me information.<br> You have to assign the .domainname.com domain when you clear them out otherwise it won't clear them out.<br> <a href="http://forums.asp.net/t/1399232.aspx/1" rel="nofollow">http://forums.asp.net/t/1399232.aspx/1</a><br> Cookies with a DOMAIN value in classic ASP<br> <a href="http://blurbly.net/5_5.htm" rel="nofollow">http://blurbly.net/5_5.htm</a></p> <p><b>Edit:</b> Further tests have shown that because the "Path" was used on the cookie, the "Path" was required on the "Kill". <br><b>Edit:</b> This is IIS-6 - it appears to be similar to the known error with VB6 INI files. When a program hits the INI file too fast the system can't keep up and INI file corruption happens.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload