2013-02-28 2 views
1

내 웹 응용 프로그램은 1 분마다 .aspxauth 쿠키를 (20 일)로 설정하고 asp.net_sessionid는 (세션 끝)으로 설정하고 내 사이트를 만들고 싶습니다 (나를 기억하십시오).로그인 양식 asp.net

난 -하지만 전혀 사용 여부에에 아래의 코드를 사용하고 있습니다 :

<authentication mode="Forms"> 
    <forms 
    loginUrl="~/Account/Login.aspx" 
    protection="All" 
    timeout="30160" 
    name=".ASPXAUTH" 
    path="/" 
    requireSSL="false" 
    slidingExpiration="false" 
    defaultUrl="~/Default.aspx" 
    cookieless="UseCookies" 
    enableCrossAppRedirects="false" /> 
</authentication> 

어떻게 자주 로그 아웃에서 내 응용 프로그램을 방지합니까?

+1

내가 찾은 [이] (http://stackoverflow.com/questions/3355601/asp-net-remember - 기본 양식 인증을 변경 한 경우

<sessionState timeout="20"/> 

,이 게시물을 참조 -me-cookie) 및 [this] (http://stackoverflow.com/questions/2452656/asp-net-mvc-rememberme)에서 찾을 수 있습니다. – Brian

+0

정말 고마워요! :) 나는이 [post] (http://stackoverflow.com/a/3175994/1525791)에서 해결책을 발견했다. – DreamsDotNet

답변

2

모든 것이 기본적으로 설정되어있는 것처럼 보이므로 다음 설정을 사용하십시오.

<forms loginUrl="~/Account/Login.aspx"" timeout="30160" /> 

의 Web.config에서 확인 sessionState 어느 전혀 존재하지 않거나 값으로 설정되어 있는지 확인합니다.

Forms Authentication Timeout