You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From testing on Amazon Linux EC2 with php 7.0 and php 7.1 the session files are not findable with the current file name detection. (using the default session save path)
I would request this be looked more into, I modified the script to at least get it working on my setup for the time being (example below)
On a higher note, there is something going on with PHP 7+ session gc. From many tests, it is failing to actually clear out the expired session files, I am not entirely sure if this is strictly a CI issue. But it has affected most of my CI projects on different servers.
This did not work on the server:
$pattern = sprintf('/^%s[0-9a-f]{%d}$/', preg_quote($this->cookieName, '/'), ($this->matchIP === true ? 72 : 40));
while (($file = readdir($directory)) !== false)
{
// If the filename doesn't match this pattern, it's either not a session file or is not oursif ( ! preg_match($pattern, $file) || ! is_file($this->savePath . '/' . $file) || ($mtime = filemtime($this->savePath . '/' . $file)) === false || $mtime > $ts)
{
continue;
}
unlink($this->savePath . '/' . $file);
}
This was a slightly different one. IIRC from emails @timothymarois and I exchanged, it worked fine in a local dev environment, but completely failed on AWS servers to find the session files.
As for the garbage collection, that has definitely come up on the forums previously, and has typically been the php.ini file having a garbage collection time set to 0 or something like that.
From testing on Amazon Linux EC2 with php 7.0 and php 7.1 the session files are not findable with the current file name detection. (using the default session save path)
I would request this be looked more into, I modified the script to at least get it working on my setup for the time being (example below)
On a higher note, there is something going on with PHP 7+ session gc. From many tests, it is failing to actually clear out the expired session files, I am not entirely sure if this is strictly a CI issue. But it has affected most of my CI projects on different servers.
This did not work on the server:
I ran this instead:
I did not look into which part of the if statement was causing this issue, but I am adding this here as it needs to be investigated further.
The text was updated successfully, but these errors were encountered: