Files
timebank-cc-public/app/Auth/DockerSessionGuard.php
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

27 lines
687 B
PHP

<?php
namespace App\Auth;
use Illuminate\Auth\SessionGuard;
class DockerSessionGuard extends SessionGuard
{
/**
* Update the session with the given ID.
*
* @param string $id
* @return void
*/
protected function updateSession($id)
{
$this->session->put($this->getName(), $id);
// In Docker, skip session migration to avoid session persistence issues
// Only regenerate the CSRF token, don't migrate the session ID
$this->session->regenerateToken();
// Note: We intentionally skip session->migrate() here for Docker compatibility
// In production, you should use the standard SessionGuard
}
}