A
Adam
Hi All,
My Session variables are not being kept across .asp pages.
I have written two test pages that do nothing else.
When page two is displayed the Session variable is undefined.
I have read http://www.aspfaq.com/show.asp?id=2157.
.. 'Enable session state'is enabled for the website.
.. I am running IE6 on WinXP SP1. All my browser Security settings
are set to the default levels.
What am I missing ?
Thanks in advance.
Adam
TESTONE.ASP
<%@ language=javascript%>
<% Response.Buffer = true;%>
..
..
<%
var foo = "foo";
if (typeof(Session("test")) == 'undefined') {
Session("test") = foo;
}
%>
<table>
<tr><td>Session variable test = <%=Session("test")%></td></tr>
<tr><td><A href="testtwo.asp">Go to page two</a></td></tr>
</table>
..
..
TESTTWO.ASP
<%@ language=javascript%>
<% Response.Buffer = true;%>
..
..
<table>
<tr><td><%=typeof(Session("test"))%></td></tr>
<tr><td>Session variable test = <%=Session("test")%></td></tr>
</table>
My Session variables are not being kept across .asp pages.
I have written two test pages that do nothing else.
When page two is displayed the Session variable is undefined.
I have read http://www.aspfaq.com/show.asp?id=2157.
.. 'Enable session state'is enabled for the website.
.. I am running IE6 on WinXP SP1. All my browser Security settings
are set to the default levels.
What am I missing ?
Thanks in advance.
Adam
TESTONE.ASP
<%@ language=javascript%>
<% Response.Buffer = true;%>
..
..
<%
var foo = "foo";
if (typeof(Session("test")) == 'undefined') {
Session("test") = foo;
}
%>
<table>
<tr><td>Session variable test = <%=Session("test")%></td></tr>
<tr><td><A href="testtwo.asp">Go to page two</a></td></tr>
</table>
..
..
TESTTWO.ASP
<%@ language=javascript%>
<% Response.Buffer = true;%>
..
..
<table>
<tr><td><%=typeof(Session("test"))%></td></tr>
<tr><td>Session variable test = <%=Session("test")%></td></tr>
</table>