← All docs

session_reset()

Reloads the session data from storage, discarding this request's changes.

session_reset()

function session_reset(): bool

Reloads the session data from storage, discarding this request’s changes.

Parameters: none.

Returns: bool

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how session_reset is implemented in the compiler, see the internals page.