public function __construct(SessionConfig
$config, string
$ipAddress) { parent::
__construct($config,
$ipAddress);
// Store Session configurations
$this->DBGroup =
$config->DBGroup ??
config(Database::
class)->defaultGroup;
// Add sessionCookieName for multiple session cookies.
$this->idPrefix =
$config->cookieName . ':';
$this->table =
$this->savePath;
if (empty($this->table
)) { throw SessionException::
forMissingDatabaseTable();
} $this->db = Database::
connect($this->DBGroup
);
$this->platform =
$this->db->
getPlatform();
} /**
* Re-initialize existing session, or creates a new one.
*
* @param string $path The path where to store/retrieve the session
* @param string $name The session name
*/