Solved it now i forgot in lua i declare vars from nginx different.

header_filter_by_lua '
        ngx.header["Set-Cookie"] = "value=1; path=/; domain=" ..
ngx.var.host_without_www .. "; Expires=" ..
ngx.cookie_time(ngx.time()+2592000) -- +1 month 30 days
';

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,269438,269443#msg-269443

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to