As per our application flow for authenticated user we are using Session to store different parameters & under filter config we have written custom filter on action executing to validate by checking Session variable using context.session[key] and session variable, with the flow of application its creating session variable but when we try to access it always return null. We debugged the code and its working fine in our local visual studio-2019. Only after deploying in IIS on server this issue occurs
Loading

Aravind GovindarajPosted Dec 9, 2022, 5:42 PM
Can you please check the session option in IIS? Please validate if it's not enabled, then enable it and try it again
Open IIS Manager. Navigate to the site you are working on. On the right double click ASP. Click on Session properties + to show all options. Change enable session state to true.
Jignesh KumarPosted Dec 9, 2022, 7:38 AM
Hello,
Please check this one, You need to check web.config file on deployed application
https://learn.microsoft.com/en-us/previous-versions/ms178581(v=vs.140)?redirectedfrom=MSDN