Hi
I have problem with clearing session only in IE browser (I've tested in different version IE (IIS 6 and 7) - it works good in Firefox and Opera).
I have 4 small scripts (I show code for better explanation, where I have problem):
1. default.asp - it only show session value:
<%@LANGUAGE="VBSCRIPT"%>
<%
Session.Timeout=60
Response.Write("Session value: "&Session("site"))
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
</html>
2. setsession.asp - set Session("site")
<%@LANGUAGE="VBSCRIPT"%>
<%
Session("site")= "error"
Response.Redirect("default.asp")
%>
3.clearsession.asp - assign Session("site") to empty string
<%@LANGUAGE="VBSCRIPT"%>
<%
Session("site")=""
Response.Redirect("default.asp")
%>
4.site.asp - I don't want to show this site, if Session("site") is empty string
<%@ language="VBScript" %>
<%
if Session("site") ="" then
Response.Redirect("default.asp")
end if
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<%Response.Write("Session value: "&Session("site"))%>
</body>
</html>
In IE even though sesion is set to "", it always show site.asp (doesn't redirect), and it shows, that session is set to "error". It behaves like in IE I can't pass session value beetwen pages. In Firefox and Opera everything is all right. Could you explain, where is problem and how could it solve?
Thanks for help.
Regards