Skip to content

clearSession

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

clearSession

Clears all session variables stored in memory ($_SESSION), while keeping the session active and the session ID intact.

Usage

clearSession(): bool

Parameters

  • Takes no arguments.

Return Value

(bool) : Returns true, always.

Examples

$cphp->clearSession();

Debug Errors

  • No debug errors.

Related Methods

endSession | getSession | regenSession | removeSession | setSession | startSession


Home | CoreyPHP | Session Management

Clone this wiki locally