H
H
hrvasiliy2015-10-28 14:46:33
PHP
hrvasiliy, 2015-10-28 14:46:33

Why doesn't session.cookie_domain work?

I'm trying to transfer the session to subdomains, I encountered such a problem, I solved it by adding it to .htaccess:
php_value session.cookie_domain ".site.ru"
At the moment I'm using nginx, I tried to edit the session.cookie_domain parameter in php.ini, nothing happens, I tried to use this setting in php, before starting the session :
session_set_cookie_params(0, '/', '.site.ru');
How to transfer session to subdomain when using nginx server?
UPD: I checked the work in Yandex.Browser - everything works. Safari doesn't work. With what it can be connected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksey Ratnikov, 2015-10-28
@hrvasiliy

The old cookie is not deleted, delete it manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question