Vlaad
04-22-2003, 02:46 AM
From what I've seen and read, this code below should reset my cookie values, and then remove the cookies entirely when it's moved to another page.
Unfortunately, it's doing nothing of the sort in Mozilla (actually, Phoenix, but it's 6of1, really).
From what I can tell, it works in IE.
Any thoughts would be muchly appreciated! (It's pretty urgent)
<%@ LANGUAGE=VBSCRIPT %>
<%
Response.Buffer=true
' Reset all cookies
Response.Cookies("TEsessionID") = "."
Response.Cookies("TEsessionID").Expires = Date() - 1
Response.Cookies("Alias") = "."
Response.Cookies("Alias").Expires = Date() - 1
Response.Cookies("UserLevel") = "."
Response.Cookies("UserLevel").Expires = Date() - 1
Response.Cookies("Invalid") = "."
Response.Cookies("Invalid").Expires = Date() - 1
%>
<HTML>
<HEAD><TITLE>Logging off...</TITLE>
<BODY>
Logging off... please wait
<%
' Redirect to the index
Response.Redirect "index.asp"
%>
</BODY>
</HTML>
Unfortunately, it's doing nothing of the sort in Mozilla (actually, Phoenix, but it's 6of1, really).
From what I can tell, it works in IE.
Any thoughts would be muchly appreciated! (It's pretty urgent)
<%@ LANGUAGE=VBSCRIPT %>
<%
Response.Buffer=true
' Reset all cookies
Response.Cookies("TEsessionID") = "."
Response.Cookies("TEsessionID").Expires = Date() - 1
Response.Cookies("Alias") = "."
Response.Cookies("Alias").Expires = Date() - 1
Response.Cookies("UserLevel") = "."
Response.Cookies("UserLevel").Expires = Date() - 1
Response.Cookies("Invalid") = "."
Response.Cookies("Invalid").Expires = Date() - 1
%>
<HTML>
<HEAD><TITLE>Logging off...</TITLE>
<BODY>
Logging off... please wait
<%
' Redirect to the index
Response.Redirect "index.asp"
%>
</BODY>
</HTML>