How to set path and domain for a cookie?

Posted by Tripati_tutu under ASP.NET category on | Points: 40 | Views : 2201
To set the path for a cookie, use
CookieName.Path = "/Articles/";

To set the domain for a cookie, use
CookieName.Domain = "";
 In case of cookie, you can't edit a cookie but you can overwrite a cookie by creating a new cookie.

Comments or Responses

Login to post response