More in this section
Forums / General Discussions / Login issue

Login issue

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Gaurav
    Gaurav avatar
    38 posts
    Registered:
    30 Nov 2010
    28 Apr 2011
    Link to this post
    I am using following code to and form authentication in custom login control
            HttpCookie cookie = this.Response.Cookies[FormsAuthentication.FormsCookieName];
                cookie.Expires= DateTime.Now.AddDays(1);
                UserManager.Default.SetAuthenticationCookie(cookie);

    but when user login into application get logged out in 20-30 mint but I have set the cookies for 1 day

    Now i want that user should not get logged out before 1 day until he clicks on log out link


    Thanks
    Gaurav
1 posts, 0 answered