Ext.Net.Cookies.GetValue C# (CSharp) Method

GetValue() public static method

Retrieves cookie value that are accessible by the current page. If a cookie does not exist, get() returns null.
public static GetValue ( string name ) : string
name string The name of the cookie to get
return string
        public static string GetValue(string name)
        {
            HttpCookie cookie = HttpContext.Current.Request.Cookies[name];
            if (cookie != null)
            {
                return cookie.Value;
            }

            return null;
        }