Hi all,
I'm having problems interacting with session state in SharePoint 2013 (enterprise, on-premise).
I ran Enable-SPSessionStateService and modified the web.config of my web app to set enableSessionState="true".
I can see that the service is running in central admin. The database was created properly, and I can see that the ASPStateTempApplications table has one entry in it, and when I hit a page I can see my session being created/updated in the ASPStateTempSessions table. So far, so good.
The only problem is that I can't seem to interact with the session at all. My real requirement is to use it in InfoPath, but when that failed I tried creating a basic web part to verify that the session state could be accessed, but this shows thatHttpContext.Current.Session is consistently returning NULL.
I've been fighting with this for a few days now and have tried every suggestion I've come across on many blogs & technet articles etc, but it is stubbornly refusing to play ball.
Does anybody know what might be going on? I've tried disabling & re-enabling the session state service, but not change.
Thanks,
Anthony