Re: Hashing on a particular cookie value

2012-11-08 Thread Paul A. Procacci
Thanks a lot Paul. Before I read this , I tried the following : hash_data(regsub(req.http.Cookie,^.*?mycookie=([^;]*);*.*$ , \1)); Your regex differs than mine. One negligible difference and one that I'll focus on. The negligible difference being the anchors ^ and $. They aren't necessary.

RE: Hashing on a particular cookie value

2012-11-08 Thread Soumendu Bhattacharya
== Your regex differs than mine. One negligible difference and one that I'll focus on. The negligible difference being the anchors ^ and $. They aren't necessary. For reference, my regex

Hashing on a particular cookie value

2012-11-07 Thread Soumendu Bhattacharya
Hi All, I am trying to hash varnish on a particular cookie value. My url remains the same , but the content changes depending on if you have this particular cookie and its value. I am stuck at how to evaluate that cookie value and pass it to hash function (passing it to hash

Re: Hashing on a particular cookie value

2012-11-07 Thread Paul A. Procacci
On Wed, Nov 07, 2012 at 10:18:45PM +0530, Soumendu Bhattacharya wrote: Hi All, I am trying to hash varnish on a particular cookie value. My url remains the same , but the content changes depending on if you have this particular cookie and its value. I am stuck at

RE: Hashing on a particular cookie value

2012-11-07 Thread Soumendu Bhattacharya
== On Wed, Nov 07, 2012 at 10:18:45PM +0530, Soumendu Bhattacharya wrote: Hi All, I am trying to hash varnish on a particular cookie value. My url remains the same , but the