Using Session & Cookies in auth_request backend
Hello,
I do not seem to be able to use session and cookie in auth_request back end (PHP). How do I configure so that session and cookies are available?
NGINX Configuration:
location /restricted-resource { alias restricted-resource; auth_request /validate; index index.html index.htm; error_page 403 /403.html; }
location ~ .php$ { root php; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; include fastcgi_params; }
location /validate { proxy_pass http://127.0.0.1/validate.php; proxy_pass_request_body off; proxy_set_header Content-Length '; proxy_set_header X-Original-URI $request_uri; }
PHP Back end (Example):
Thanks, Satheesh
Hi, were you able to get it working? I'm dealing with this at this moment!! :'(
Hi. We have the samé problém on auth_request sessions - please do you have solution ?