public string get_multiple_cookies() { _writer.AppendCookie(new Cookie("Foo", "1")); _writer.AppendCookie(new Cookie("Bar", "2")); return("Just look at the cookies"); }
public void Erase() { var cookie = new HttpCookie(_cookieName) { Expires = _time.UtcNow().AddYears(-1) }; _writer.AppendCookie(cookie); }
public AntiForgeryData SetCookieToken(string path, string domain) { var applicationPath = _fubuApplicationFiles.RootPath; AntiForgeryData token = GetCookieToken(); string name = _tokenProvider.GetTokenName(applicationPath); string cookieValue = _serializer.Serialize(token); var newCookie = new Cookie(name, HttpUtility.UrlEncode(cookieValue)) { HttpOnly = true, Domain = domain }; if (!string.IsNullOrEmpty(path)) { newCookie.Path = path; } _outputWriter.AppendCookie(newCookie); return(token); }
public string get_is_a_partial(PartialInput input) { _outputWriter.AppendCookie(new Cookie("key", "value")); return("I am some partial text!"); }
public void AppendCookie(HttpCookie cookie) { _inner.AppendCookie(cookie); }
public void post_write_cookie(WriteCookieRequest request) { _writer.AppendCookie(new Core.Http.Cookies.Cookie(request.Name, request.Value)); }
public void AppendCookie(HttpCookie cookie) { // TODO -- trace _inner.AppendCookie(cookie); }