Answer the question
In order to leave comments, you need to log in
How to fix saving sessions?
Good afternoon.
Site on Bitrix, Debian, nginx+phpfpm, bitrix vm is not used. The domain is now delegated to Yandex, we are delegating the domain to another location. And there was a problem. At the old address, the sessions work fine, when switching to a new address, the sessions are not saved.
When I try to change the same order, I get the following error:
Request processing error. The most likely reasons are: the user has insufficient rights; problems with saving PHP sessions; part of the POST request data is truncated by PHP or the web server.
Probably, when generating cookies, the user's IP address is still used.
Previously, the user's IP address and the connection's IP address were the same, and the user's IP address was probably taken from the remote_addr variable.
Now the user's IP address and the IP address from which the request comes from do not match due to the fact that requests go through our proxy servers. The IP address can change and this is probably causing problems with sessions.
On your part, you must either change the transmission of the user's IP address to Bitrix (we pass the user's IP address in the X-Real-IP header) or ignore it in cookies.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question