Question

I am wondering if this is possible. Have looked around and not found much luck. Basically I want one user with role1 to get a 20 minute session. When a user with a role2 logs in I want their session to be 60 minutes.

I needed this in asp.net project. The code was as simple as...

Session.Timeout = 60;

The 60 was in minutes. The Session is from HttpSessionStateBase

Était-ce utile?

La solution

No, but you can invalidate a session manually after a timespan.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top