Configuring Session State : Session state « Configuration « ASP.NET Tutorial






<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.web>
        <!-- Other settings omitted. -->

        <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424" stateNetworkTimeout="10"
            sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI"
            sqlCommandTimeout="30" allowCustomSqlDatabase="false"
            useHostingIdentity="true"
            cookieless="UseCookies" cookieName="ASP.NET_SessionId"
            regenerateExpiredSessionId="false"
            timeout="20"
            customProvider=""
        />
    </system.web>
</configuration>








16.27.Session state
16.27.1.Set session state to auto dectect
16.27.2.Set to use URL in case of cookie less
16.27.3.Configuring Session State