Answer the question
In order to leave comments, you need to log in
Problems in the work of the site on bitrix?
Good afternoon. Bitrix site. Forms were made, but when I try to submit the form, it says
"Your session has expired. Fill in the field again and try again." I could not find where you can set the session time.
Answer the question
In order to leave comments, you need to log in
This applies purely to the php server settings.
Here, try the session lifetime of 3 hours - in the php.ini file, set the following parameters:
session.gc_maxlifetime = 10800
session.cookie_lifetime = 10800
php_value session.gc_maxlifetime 10800
php_value session.cookie_lifetime 10800
<?php
session_set_cookie_params(10800);
?>
The comment above describes the whole point, I have encountered such a problem more than once.
Maybe someone will help. I renamed the folder with the site and I had such a problem.
As a solution, I cleared the /tmp/php_sessions/ext_www/oldsite.net folder and renamed it to /tmp/php_sessions/ext_www/newsite.net and it worked. Looks like you didn't have permission to create the folder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question