session_set_save_handler()
function session_set_save_handler(mixed $handler_or_open = null, mixed $register_or_close = true, mixed $read = null, mixed $write = null, mixed $destroy = null, mixed $gc = null, mixed $create_sid = null, mixed $validate_id = null, mixed $update_timestamp = null): bool
Implemented by the compiler-injected web prelude.
Parameters:
$handler_or_open(mixed), defaultnull, optional$register_or_close(mixed), defaulttrue, optional$read(mixed), defaultnull, optional$write(mixed), defaultnull, optional$destroy(mixed), defaultnull, optional$gc(mixed), defaultnull, optional$create_sid(mixed), defaultnull, optional$validate_id(mixed), defaultnull, optional$update_timestamp(mixed), defaultnull, optional
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_set_save_handler is implemented in the compiler, see the internals page.