Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SetEnvIf Cookie?

1,269 views
Skip to first unread message

bic1...@gmail.com

unread,
Oct 2, 2007, 10:57:21 AM10/2/07
to
Apache 2.0.47.

I'd like to not log based on a cookie

"WT_FPC=31209:312jkl; JSESSIONID=0000t1mwxTggIv:-1; WASReqURL=/
devadmin; testsite=00004dPVY7ZW8WCbrNswL:126pftqup;
sess=m2gDRsdPQfdseNKtpbTPiJ; ServerIdCookie=mytest.home.com;
LoginIdCookie=JSMITH; SESSIONNUM=69534319"

So not sure if I should do

SetEnvIf LoginIdCookie "JSMITH" dontlog

or

SetEnvIf Cookie "%JSMISTH%" dontlog

Is it even possible?

Klaus Johannes Rusch

unread,
Dec 17, 2007, 6:10:42 PM12/17/07
to

Cookies are somewhat tricky to match, the following rule should do:

SetEnvIf HTTP_COOKIE "(^| )LoginIdCookie=JSMITH($|;)" dontlog

Docs: http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html#setenvif

--
Klaus Johannes Rusch
Klaus...@atmedia.net
http://www.atmedia.net/KlausRusch/

0 new messages