2014-03-06 2 views
-2

일정 시간 동안 아무 키도 누르지 않으면 웹 세션에서 사용자를 로그 오프하기 만하면됩니다. 여기서 뭐가 잘못 됐어? 로그 오프하지 않습니다.C# asp.net에서 세션 시간 초과가 작동하지 않습니다.

 <authentication mode="Forms"> 
    <forms loginUrl="~/Account/Login.aspx" timeout="3" slidingExpiration="true"/> 


</authentication> 
+2

세션 상태는 인증 쿠키와 관련이 없습니다. – SLaks

+0

사용자가 아무것도 치지 않으면 시간 초과가 필요합니다 – Adams

+0

** 시간이 얼마 남았습니까 ** 정확히 **? – SLaks

답변

0

는 지금까지 내가 (메모리) this only terminates 세션 과정을 알고 있지만, 사용자가 로그 오프하지 않는. 대신 authentication에서 제한 시간을 설정하십시오.

<authentication mode="Forms"> 
    <forms timeout="5" slidingExpiration="true" /> 
</authentication> 
+0

이 작업을 수행 할 수는 있지만 수행하지 않음 timeout = "5"/> Adams

관련 문제