user112799
user112799

Reputation: 1625

InProc Session State not working

Anyone have any ideas why a servers InProc session state would not be working? Is there a manual reset for it, or a way to check?

Thanks

Session mode is InProc, timeout is 25 minutes.

At this time I'm unsure if the Session object is null, or if the session object is empty and cannot be accessed.

I'm thinking it could be a cookie issue, or it could be that Application_Start doesn't fire properly. What else could it be? IIS settings?

Upvotes: 3

Views: 5120

Answers (2)

Jamie
Jamie

Reputation: 1679

I know this post is old, but I hope this will help someone. Mine didn't work and I found out that I needed to add httpModules to web.config file.

Web.config:

<sessionState mode="InProc" cookieless="false" timeout="20"
 sqlConnectionString="YourConnectionString">
</sessionState>

<httpModules>
   <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>   

Upvotes: 1

rick schott
rick schott

Reputation: 20617

Make sure you aren't setting Session variables in your Application_Start event. That is what the Session_Start is for.

Also, is your application pre-compiled? Check this KB article if so.

Reset Options:

  • Run IISReset

  • Restart the World Wide Web Publishing(W3SVC) service.

  • Manually recycle the App Pool in IIS

Upvotes: 0

Related Questions