may try this: add_header Set-Cookie "uri=$uri; path=/"; Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214665,214675#msg-214675