Live Support, Chat and HTML Editor
Welcome to Support forums Sign in | Join | Help Messenger
Loading

Login Form return OK, but lgoin failed!

Last post 06-02-2011, 9:24 PM by pjs75. 18 replies.
Page 2 of 2 (19 items)   < Previous 1 2
Sort Posts: Previous Next
  •  05-05-2011, 1:09 PM 67456 in reply to 67447

    Re: Login Form return OK, but lgoin failed!

    Dear
     
    Please add breakpoint in the following method, please check whether the higlighted line is called:
     
     public override AppChatIdentity GetLogonIdentity()
    {
    if (!HttpContext.Current.User.Identity.IsAuthenticated)
    return null;
    return new AppChatIdentity(HttpContext.Current.User.Identity.Name, false, ToUserId(HttpContext.Current.User.Identity.Name), HttpContext.Current.Request.UserHostAddress);
    }
    Thank you for asking
  •  05-05-2011, 5:08 PM 67459 in reply to 67456

    Re: Login Form return OK, but lgoin failed!

    Eric, I have done so. HttpContext.Current.User is null, so it returns null.
     
    I will be away for a few days, so won't respond until next monday.
     
    Pat.
  •  05-09-2011, 2:26 AM 67490 in reply to 67459

    Re: Login Form return OK, but lgoin failed!

    hi pjs75,
     
    Try change
     
     System.Web.Security.FormsAuthentication.SetAuthCookie(username, false, HttpRuntime.AppDomainAppVirtualPath);
     
    to
     
    System.Web.Security.FormsAuthentication.SetAuthCookie(username, false, "/");
     
     
    Regards,
     
    Ken
     
     
     
     
  •  06-02-2011, 9:24 PM 67791 in reply to 67490

    Re: Login Form return OK, but lgoin failed!

    Hi Ken,
    I eventually got around to working on this, and that worked, thanks.
     
    I have more questions, though I will post in new thread.
     
    Pat.
Page 2 of 2 (19 items)   < Previous 1 2
View as RSS news feed in XML