<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Session\Handlers\FileHandler;

class Session extends BaseConfig
{
    public string $driver          = FileHandler::class;
    public string $cookieName      = 'ci_session';
    public int    $expiration      = 7200;
    public string $savePath        = WRITEPATH . 'session';
    public bool   $matchIP         = false;
    public int    $timeToUpdate    = 300;
    public bool   $regenerateDestroy = false;
    public ?string $DBGroup        = null;
    // FIX: Lax allows cookie to survive redirect-after-POST (login loop)
    public string $cookieSameSite  = 'Lax';
}
