Get Cookie by name - CSharp System.Web

CSharp examples for System.Web:Cookie

Description

Get Cookie by name

Demo Code


using System.Web;
using System;/*from  w w w .  ja v a  2  s.  c om*/

public class Main{

        public static HttpCookie Get(string name)
        {
            return HttpContext.Current.Request.Cookies[name];
        }
}

Related Tutorials