UserSessions
class UserSessions
Methods
Create a new user session repository.
Get the active sessions for the user.
Invalidate an active session belonging to the user.
Invalidate every other active session belonging to the user.
Invalidate every active session belonging to the user.
Invalidate active sessions while preserving an optional session identifier.
Rotate the current session after its stored record was destroyed.
Details
at line 15
__construct(string $authProvider, string $userId, CanManageUserSessions $handler, Store $store)
Create a new user session repository.
at line 28
Collection
all()
Get the active sessions for the user.
at line 36
bool
invalidate(string $sessionId)
Invalidate an active session belonging to the user.
at line 60
int
invalidateOthers(string $except)
Invalidate every other active session belonging to the user.
at line 70
int
invalidateAll()
Invalidate every active session belonging to the user.
at line 78
protected int
invalidateMany(string|null $except = null)
Invalidate active sessions while preserving an optional session identifier.
at line 112
protected void
rotateCurrentSession()
Rotate the current session after its stored record was destroyed.