nginx-auth-request-module icon indicating copy to clipboard operation
nginx-auth-request-module copied to clipboard

Using Session & Cookies in auth_request backend

Open satheeshkumarramasamy opened this issue 12 years ago • 2 comments

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

satheeshkumarramasamy avatar Nov 07 '13 06:11 satheeshkumarramasamy

Hi, were you able to get it working? I'm dealing with this at this moment!! :'(

cristian100 avatar Oct 01 '15 04:10 cristian100

Hi. We have the samé problém on auth_request sessions - please do you have solution ?

antoninecer avatar Jun 11 '19 08:06 antoninecer