Create new cookie to edit its value
<p>I know that you can't edit incoming cookies.  I have a cookie that I just need to read..nothing more but I have a need to remove some characters from its value so that I can parse it.  How can I do this?  I don't need to send the modified new cookie back in the response, it's just for my server-side consumption and then that's it.</p>

<p>Updated:</p>

<p>figured it out:</p>

<pre><code>    HttpCookie facebookAuthCookie = HttpContext.Current.Request.Cookies[facebookCookieName];
    string cleanValue = facebookAuthCookie.Value.Replace("\"", string.Empty);

    HttpCookie cleanedFacebookAuthCookie = new HttpCookie("cleanedFacebookCookie", cleanValue);
</code></pre>

<p>gayness</p>
