Skip to content

endSession

Corey Avis edited this page Sep 23, 2026 · 2 revisions

endSession

Completely destroyes the session. Clears memory variables, deletes the session cookie from the client browser with matching parameters, and destroys the session storage on the server.

Usage

endSession(): bool

Parameters

  • Takes no arguments.

Return Value

(bool) : Returns true, always.

Examples

$cphp->endSession();

Debug Errors

  • No debug errors.

Related Methods

clearSession | getSession | regenSession | removeSession | setSession | startSession


Home | CoreyPHP | Session Management

Clone this wiki locally