Answer the question
In order to leave comments, you need to log in
Why is the session file not deleted after session.gc_max_lifetime expires?
Hello colleagues! I recently encountered the following problem:
I need the minimum idle time between requests to be 3 seconds (purely for example and clarity)
Here is the server configuration:
session.gc_probability = 1
session.gc_divisor = 1
session.gc_maxlifetime = 3
<?php
session_start();
$_SESSION["age"] = 100;
echo $_SESSION["age"];
//создать на сервере файл сессии с age==100
?>
<?php
session_start();
echo $_SESSION["age"];
?>
//в браузере 100
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