Please wait while we load your page...


Latest Version [8.00202205221] Last Updated [May-22-2022]


PHP Manual [session_module_name]

Protect Your Website Today

PHP Manual || Session Functions

(PHP 4, PHP 5, PHP 7)

session_module_nameGet and/or set the current session module


session_module_name ([ string $module ] ) : string

session_module_name() gets the name of the current session module, which is also known as session.save_handler.



If module is specified, that module will be used instead. Passing "user" to this parameter is forbidden. Instead session_set_save_handler() has to be called to set a user defined session handler.

Return Values

Returns the name of the current session module.


Version Description
7.2.0 It is now explicitly forbidden to set the module name to "user". Formerly, this has been silently ignored.

PHP Manual || Session Functions