S
spitapps
I want to have sessions on my website, this is my web.config file:
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<sessionState mode="InProc" cookieless="UseCookies" timeout="20"
cookieName="whatever"></sessionState>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
Is there any reason why when i run the web app i dont get a session
cookie?? I have even tried starting with a blank website and added a
web.config file just for sessions, and I still dont get any session
cookie. Also when i use Fiddler in IE to see the requests and
responses i dont see a mangled URL with a session ID. Thanks in
advance
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<sessionState mode="InProc" cookieless="UseCookies" timeout="20"
cookieName="whatever"></sessionState>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
Is there any reason why when i run the web app i dont get a session
cookie?? I have even tried starting with a blank website and added a
web.config file just for sessions, and I still dont get any session
cookie. Also when i use Fiddler in IE to see the requests and
responses i dont see a mangled URL with a session ID. Thanks in
advance