var cookie = new HttpCookie("user", Server.UrlEncode(name));...var name = Server.UrlDecode(cookie.Value);