public static UserBase GetAnonymousUser(this HttpCookieCollection cookies) { UserBase user = null; HttpCookie cookie = cookies[anonymousUserCookieName]; if (cookie != null) { user = user.FillFromSerlializedString(cookie.Value); } return(user); }