| FAQ |
| Kalender |
|
|
#1 | ||
|
|||
|
Mycket flitig postare
|
Tjena,
har lite problem med att radera en cookie i .NET. Någon som har lust att hjälpa till lite så här sent på dagen då hjärnan inte jobbar på topp.. Kod:
HttpCookie myCookie = new HttpCookie("FKPARENT");
myCookie.Expires = DateTime.Now.AddDays(-1d);
HttpContext.Current.Response.Cookies.Add(myCookie);
string sID = HttpContext.Current.Request.Cookies["FKPARENT"]["Id"].ToString();
|
||
|
|
Svara med citat
|
|
|