1. 程式人生 > >c#中獲取cookie

c#中獲取cookie

                        string cookieName = "BJ_UserName";
                        string CookieValue = "";
                        if (HttpContext.Current.Request.Cookies[cookieName] != null)
                        {
                            CookieValue = HttpContext.Current.Request.Cookies[cookieName].Value;
                        }
設定cookie可以用jquery的外掛來完成