Re: How does Chat_OpenMessenger() know which user it is?

  •  07-12-2006, 5:04 AM

    Re: How does Chat_OpenMessenger() know which user it is?

    Jon.Lee :
     
    It seems that you have your own method to store the login data for user .
    So, Context.User.Identity.IsAuthenticated is not useful for you .
     
    You can try:
     
    public string GetUserUniqueName() 
      {
        HttpCookie cookie=HttpContext.Current.Request.Cookies["username"];
        if(cookie==null)return null;
        string name=cookie.Value;
        if(name==null||name=="")return null;
        //TODO : check the cookie username/password again
        return name;
      }
     
    Regards , Terry .
View Complete Thread