Relative Content

Tag Archive for c#asp.net-core.net-8.0

To have different session timeout for different users

I am trying to build a extension method to having variable value to session timeout. The scenario is , I need different session timeout value based on some condition. Here I am using simple username and password matching for authentication, no identity class.
Below is what I tried as an extension method,