Jim: I gave a try with UserID module , It set cookie with value something like 'wKhfOkqoyBuH7n5BAwMDAg=='. But what I wanted Cookie value is extracted from request query string. for example: when visit http://www.foo.com/index.html?f=google , a cookie need to set to browser : Key = f Value = google expires = currenttime+60d Baoming Sunby sunbaoming - Migration from Other Servers
Hello, I just migrated Apache to nginx, there is a rewrite rule to set cookie based on query string. If query string contains a parameter f=foo,then set Cookie (Key=f,Value=foo), and expire at two months later. I use : location / { if($query_string ~ "([^&]*)f=([^&]*)"){ #check whether there has a 'f=xx' key/value pairs. add_header Set-Cookie "f=$2by sunbaoming - Migration from Other Servers