Author: dizzy77 | Posted on: 9/17/2008 9:25:45 AM | Views : 261

Hi
My forms auth is logging me out to login form after 20mins, even if timeout prop is set 360mins ??
web.config : 
    <authentication mode="Forms"  >
      <forms name=".TESTCK" timeout="360" protection="All" path="/" slidingExpiration="true" loginUrl="/CMS/Default.aspx" defaultUrl="~/Cms/Management/News/News.aspx"></forms>
    </authentication>
 
auth code (taken from msdn) :
...

 If VerifyUser(UserName.Text, Password.Text) > 0 Then

            Dim tkt As FormsAuthenticationTicket
            Dim cookiestr As String
            Dim ck As HttpCookie

&n ...

Go to the complete details ...