because you are using cookieless sesssion, check your web.config, try to set cookieless="false" or don't include it<configuration>
<system.web>
<sessionState mode="Inproc"
cookieless="true"
timeout="20" />
</sessionState>
</system.web>
</configuration>
<system.web>
<sessionState mode="Inproc"
cookieless="true"
timeout="20" />
</sessionState>
</system.web>
</configuration>
在这之前,我一直没有修改过web.config
只是现在突然出现了我上面所说有哪种结果,
我已经被困几天了.我的web.config里面的代码原来是这样的: <system.web> <!-- set debugmode to false for running application -->
<compilation debug="false" />
<sessionState cookieless="true" />
<authentication mode="Forms" />
<authorization>
<allow users="*"/>
</authorization> <!-- set customeErrors off while developing -->
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
<globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312"/> </system.web>