Re: Asp database site

  •  09-03-2004, 12:10 PM

    Re: Asp database site

    :) Glad that I could help .

     
    I just make a mistake on the sample code :
     
    public string GetCurrentUserUniqueName(HttpContext context)
    {
        HttpCookie cookie=context.Request.Cookies["MyUserInfo"];"];//get the custom authentication information
        if(cookie==null)return null;//if the user is anonymous
        string username=cookie["UserName"];//get the custom authentication information
        if(username==null||username=="")return null;//if the user is anonymous
        return username;//return the useruniquename or the signed user .
    }
View Complete Thread