G
G
Ganjubas_Original2016-09-20 20:54:07
1C-Bitrix
Ganjubas_Original, 2016-09-20 20:54:07

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

4 answer(s)
S
Sergey, 2016-09-20
@Logic87

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

If you do not have the ability to make changes to the php.ini file, then you can set these parameters using the .htaccess file. To do this, add the following lines to it:
php_value session.gc_maxlifetime 10800
php_value session.cookie_lifetime 10800

Alternatively, you can set the lifetime of a session cookie from PHP using the session_set_cookie_params function. For example:
<?php
session_set_cookie_params(10800);
?>

N
Nikita, 2016-09-20
@Rema1ns

The comment above describes the whole point, I have encountered such a problem more than once.

D
Dmitry Baibukhtin, 2018-02-24
@PiloTeZ

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.

A
Ainur Valiev, 2018-09-28
@vaajnur

stupidly commented out
I still have a recaptcha

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question