Hi All,
I recently saw that I had a
lot of session files and wonder if the amount being created by CodeIgniter is correct. So I installed a fresh version of 4.5.5 app starter and made the following changes:-
Controller - home.php
PHP Code:
class Home extends BaseController
{
public function index(): string
{
$session = service('session');
return view('welcome_message');
}
}
View - welcome_message.php
PHP Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome to CodeIgniter 4!</title>
<meta http-equiv="refresh" content="60">
CodeIgniter is creating a new session file every 5 minutes. I assume this is because of
Code:
public int $timeToUpdate = 300;
in Config/Session.php
Is this (many files) the expected behaviour? and if so does it make
redundant?
ELI5