Session["fileName"] = null;
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
<system.web> <sessionState mode="InProc" timeout="60" cookieless="false" /> <pages enableSessionState="true" /> <httpModules> <remove name="Session" /> <add name="Session" type="System.Web.SessionState.SessionStateModule" /> </httpModules> </system.web>
.ashx
IRequireSessionState
.aspx
.aspx.cs
<%@ Page ... %>
guess the problem is caused by the page itself. This page exists some crashing issues. I work on another age, and there is no such a problem. This thread can be closed. Thanks.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)