Forum Discussion

Laurence Lemmon-Warde's avatar
Laurence Lemmon-Warde
Copper Contributor
Jan 29, 2020

Redis Session stopped working in SharePoint Online Add-In

Hi all - On Sunday 26th our Provider Hosted SharePoint add-in suddenly stopped working and can no longer use Azure REdis Cache for session. Nothing has changed in the app for 6 months. We can no longer use HttpContext.Current.Session as it loses its data in any postback. Any ideas what happened or how to fix? Using Microsoft.Web.RedisSessionStateProvider 4.0.1

 

Thanks!

    • Laurence Lemmon-Warde's avatar
      Laurence Lemmon-Warde
      Copper Contributor

      Uboddenberg Yes we had to remove all HttpContext Session and replace with StackExchange.Redis Cache as the session. Using unique keys for each user as cache is shared. So we removed Microsoft.Web.RedisSessionStateProvider completely.

Resources