S
S
sadieff2018-10-26 11:55:13
1C-Bitrix
sadieff, 2018-10-26 11:55:13

Why does the session crash in bitrix on a new domain?

Good day. A new domain was sent to the site on Bitrix, after which the session began to crash, and only in the public part. Everything is fine in the admin panel - once you go to the public part, authorization flies. The console shows that the session is updated every time, and the cookie lifetime is up to 1969-12-31T23:59:59.000Z.
There is no such problem on the old domain. The difference between domains is that the "problematic" one is connected to the cloudflare.com service and + it has an SSL certificate.
In which direction to dig?
PS Everywhere in the settings the domain is specified correctly, I checked it 10 times. The path to the working directory in the configuration file is specified correctly. There are no domain-related settings in php.ini and htaccess.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sadieff, 2018-10-29
@sadieff

The problem turned out to be due to the $_SERVER['REMOTE_ADDR'] variable. If anyone is interested, the solution is described here: https://error-log.ru/yazyiki-programmirovaniya/bit...

V
Viktor Taran, 2018-10-26
@shambler81

it's not about the domain
, but about the session save bang, which each domain can have its own
or not, how the configs are configured.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question