+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Login issue

Login issue

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