Reference

Guide

$session->regenerateToken()

Regenerates the session token The old token will keep its validity for a 30 second grace period

$session->regenerateToken(): void