Using Mod_Rewrite to edit a cookie conditionally
===

Is it possible to use mod_rewrite to modify values in cookies based upon a condition? I am completely new to HTTP, but I have tried a thing or two. The only regex I know is Perl-style, my hopes are it is okay.


RewriteRule s/.[0-9][0-9][0-9]/COOKIE=MSFNODE/g;

MSFNODE is a value in my cookie. The thing I want to run my regex on is SESSIONID...not sure how to choose that as a target. As the regex shows, I want to replace .[0-9][0-9][0-9] with my cookie value called MSFNODE. Is COOKIE=MSFNODE the right way to do this?