httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <oh...@cox.net>
Subject Re: [users@httpd] Conditionally strip/remove a specific cookie from request
Date Thu, 01 Jan 1970 00:00:00 GMT

---- ohaya@cox.net wrote: 
> 
> > >
> > Try
> > RequestHeader edit "Cookie" "MyCookie=.*(\;)?"
> > 
> > Anyway, more interesting question for me was how are you going to check for
> > the first condition, existance of the arbiteary header MYHEADER? Or you are
> > talking here about standard http header?
> > 
> > > which I thought SHOULD work, but it doesn't.
> > >
> > > Anyone?  Any regex experts out there?  I know that I'm TERRIBLE with them
> > :(...
> > >
> > > Thanks,
> > > Jim
> 
> Igor,
> 
> Thanks for your suggestion, but it:
> 
> 1) Leaves a trailing semicolon if the cookie I want to remove is at the very end of the
"Cookie" value/string, and
> 2) Removes the cookie I want to remove and everything after that if the cookie I want
to remove is not at the very end of the "Cookie" value/string.
> 
> Re. your question: I probably didn't explain clearly what I meant by an arbitrary MYHEADER.
 We know what that header name is, so it's "arbitrary" in the sense that it'll be what we
need, but it's not one of the standard HTTP headers.
> 
> Jim

Sorry - forgot to include the mailing list in the email...

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message