Skip to content

Instantly share code, notes, and snippets.

@JCallico
Created April 25, 2013 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JCallico/5461409 to your computer and use it in GitHub Desktop.
Save JCallico/5461409 to your computer and use it in GitHub Desktop.
public HttpCookie Get(String name) {
HttpCookie cookie = (HttpCookie)BaseGet(name);
if (cookie == null && _response != null) {
// response cookies are created on demand
cookie = new HttpCookie(name);
AddCookie(cookie, true);
_response.OnCookieAdd(cookie);
}
return cookie;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment