How to set path custom path for cookies
+3
A:
Just set HttpCookie.Path
property.
public HttpCookie CreateCookie(string name, string value, string path)
{
var cookie = new HttpCookie(name, value);
cookie.Path = path;
return cookie;
}
BrunoLM
2010-10-15 14:47:32