Quantcast
Channel: Serverphorums.com - HAProxy
Viewing all articles
Browse latest Browse all 5112

removing/renaming cookie for certain requests ? (no replies)

$
0
0
Hi,

I'd like to remove(or rename) PHPSESSID cookie for most requests,
there're couple of pages that need/use PHPSESSID.

Is there better/simpler way than this:
acl is_phpsess_url path_beg /sesspath1/ /some/anothersess.php
acl is_phpsess_cookie req.cook(PHPSESSID) -m found

http-request replace-header Cookie (.*)PHPSESSID=(.*) \1NOSESS=\2 if is_phpsess_cookie !is_phpsess_url

-Jarno

--
Jarno Huuskonen

Viewing all articles
Browse latest Browse all 5112

Trending Articles