← All docs

session_save_path()

Reads or sets the directory session data is stored in.

session_save_path()

function session_save_path(?string $path = null): mixed

Reads or sets the directory session data is stored in.

Parameters:

  • $path (?string), default null, optional

Returns: mixed

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

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

Internals

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