Session Security in PHP and Laravel: Cookie Flags, Strict Mode and ID Regeneration
Plain PHP ships with session.use_strict_mode, cookie_httponly and cookie_secure all off. Turn them on, regenerate the ID after login, and in Laravel set SESSION_SECURE_COOKIE and keep the regenerate/invalidate calls in your auth flow.
