More in this section

Forums / General Discussions / Login issue

Login issue

1 posts, 0 answered
  1. Gaurav
    Gaurav avatar
    38 posts
    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);

    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

1 posts, 0 answered