Neuron-PHP

UserLogoutEvent
in package
implements IEvent

Event fired when a user logs out.

This event is triggered when a user explicitly logs out or when their session is terminated.

Use cases:

  • Track user session duration and activity patterns
  • Clean up user-specific resources or temporary data
  • Log session end for security audits
  • Update user activity status (online/offline)
  • Trigger session analytics and reporting
  • Send logout confirmation notifications

Table of Contents

Interfaces

IEvent
Core event interface for the Neuron event system.

Properties

$sessionDuration  : float
$user  : User

Methods

__construct()  : mixed
getName()  : string

Properties

Methods

__construct()

public __construct(User $user, float $sessionDuration) : mixed
Parameters
$user : User

User who logged out

$sessionDuration : float

Session duration in seconds


        
On this page

Search results