Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
製品とすべての製品の数量を維持するために、単一の Cookie を記録したいと考えています。C#でこれを行う方法。
クッキーで製品の存在を確認できる場合、これを行う方法はありますか。誰かがそのコードを持っています。
ありがとう
Cookieの作成:
HttpCookie cookie = new HttpCookie("name", "value"); Request.Cookies.Add(cookie);
Cookieの値を取得する:
string cookie value = Response.Cookies["name"].Value;