문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top