:) 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 .
}