Welcome! Log In Create A New Profile

Advanced

Re: How to return a cookie to a client when auth_request is used?

January 21, 2015 02:47PM
In case it will help someone else, the problem turned out to be in the FastCGI auth server's printf, the last "statement" of the HTTP header should end with \n\n instead of \r\n.

The following was wrong:
printf("Content-type: text/html\n\n"
"Set-Cookie: name=AuthCookie\r\n"
"<html><head><title>FastCGI 9010: Hello!</title></head>\n"
...);

This did the trick:
printf("Content-type: text/html\r\n"
"Set-Cookie: name=AuthCookie\n\n"
"<html><head><title>FastCGI 9010: Hello!</title></head>\n"
...);

Thank you!
Subject Author Posted

How to return a cookie to a client when auth_request is used?

nginxuser100 January 15, 2015 03:11AM

Re: How to return a cookie to a client when auth_request is used?

Maxim Dounin January 15, 2015 08:18AM

Re: How to return a cookie to a client when auth_request is used?

nginxuser100 January 18, 2015 08:50PM

Re: How to return a cookie to a client when auth_request is used?

nginxuser100 January 21, 2015 02:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready