PHP session_module_name() Function
What is session_module_name Function?
Explanation
The "session_module_name()" function is used to get and/or set the current session module.
Syntax:
session_module_name(module)
In the above syntax if "module" is specified it sets the module name, if not it will return the current session module.
Example :
<?php
session_start();
echo "Session module is:: ", session_module_name();
?>
Result :
Session module is:: files
In the above example first the session is started then the current module name "files" is displayed.