- Developer documentation
- Common codes
- Universal codes
- PHP functions
- Session management functions
- session_insert
session_insert
Declaration
session_insert(string$name,string$value):
Source: /includes/common/session.php
The function creates a session variable with the given name and value. On PHP versions prior to 5.3.0, if the global `$sys['use_session_functions']` setting is enabled, it also calls the deprecated `session_register()` function for compatibility and sets the value as a global variable using `eval()`. On newer PHP versions, it simply stores the value in the `$_SESSION` superglobal array.
Parameters
$name
$value






