Welcome! Log In Create A New Profile

Advanced

Не работает fastcgi_pass_header "Set-Cookie"

Posted by roga_i_kopita 
Не работает fastcgi_pass_header "Set-Cookie"
November 29, 2010 08:53AM
Здравствуйте.

Что не так делаю? В чём ошибка?
Не отдаётся заголовок Set-Cookie в location /page.html.
В location /administrator проблем нет, кука приходит.
Т.е. в одном location кука устанавливается, а в другом нет.

Кусок конфига вот:
[code]
server {
...
fastcgi_hide_header "Set-Cookie";
...
location /page.html {
fastcgi_pass_header "Set-Cookie";
try_files $uri =404;
}
location /administrator {
index index.php;
try_files $uri $uri/ =404;
fastcgi_pass_header "Set-Cookie";
location ~* /administrator/index2?\.php$ {
include /etc/nginx/fastcgi_default;
}
}
location ~* \.php$ {
try_files $uri @not_found;
include /etc/nginx/fastcgi_default;
}
}
[/code]

В php.ini:
session.cookie_httponly = 1
session.cookie_domain = (пустое значение)
session.cookie_path = (пустое значение)
session.auto_start = 0
session.use_only_cookies = 1
session.cookie_lifetime = 0
ну и другие параметры...
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 316
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