session_start

(PHP 4, PHP 5, PHP 7) Start new or resume existing session bool session_start ([ array $options = [] ] ) session_start() creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie. When session_start() is called or when a session auto starts, PHP will call the open and read session save handlers. These will either be a built-in save handler provided

session_set_save_handler

(PHP 4, PHP 5, PHP 7) Sets user-level session storage functions bool session_set_save_handler ( callable $open, callable $close, callable $read, callable $write, callable $destroy, callable $gc [, callable $create_sid ] ) Since PHP 5.4 it is possible to register the following prototype: bool session_set_save_handler ( SessionHandlerInterface $sessionhandler [, bool $register_shutdown = true ] ) session_set_save_handler()

session_set_cookie_params

(PHP 4, PHP 5, PHP 7) Set the session cookie parameters void session_set_cookie_params ( int $lifetime [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]] ) Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script. Thus, you need to call session_set_cookie_params() for every request and before session_start() is called.

session_save_path

(PHP 4, PHP 5, PHP 7) Get and/or set the current session save path string session_save_path ([ string $path ] ) session_save_path() returns the path of the current directory used to save session data. Parameters: path Session data path. If specified, the path to which data is saved will be changed. session_save_path() needs to be called before session_start() for that pur

session_reset

(PHP 5 >= 5.6.0, PHP 7) Re-initialize session array with original values void session_reset ( void ) session_reset() reinitializes a session with original values stored in session storage. This function requires an active session and discards changes in $_SESSION. Returns: No value is returned. See also: $_S

session_register

(PHP 4, PHP 5 < 5.4.0) Register one or more global variables with the current session bool session_register ( mixed $name [, mixed $... ] ) session_register() accepts a variable number of arguments, any of which can be either a string holding the name of a variable or an array consisting of variable names or other arrays. For each name, session_register() registers the global variable with that name in the current session

session_register_shutdown

(PHP >=5.4.0) Session shutdown function void session_register_shutdown ( void ) Registers session_write_close() as a shutdown function. Returns: No value is returned. Exception: Emits E_WARNING if registering the shutdown function fails.

session_regenerate_id

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Update the current session id with a newly generated one bool session_regenerate_id ([ bool $delete_old_session = false ] ) session_regenerate_id() will replace the current session id with a new one, and keep the current session information. When session.use_trans_sid is enabled, output must be started after session_regenerate_id() call. Otherwise, old session ID is used.

session_name

(PHP 4, PHP 5, PHP 7) Get and/or set the current session name string session_name ([ string $name ] ) session_name() returns the name of the current session. If name is given, session_name() will update the session name and return the old session name. The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name() for every request (and before session_st

session_module_name

(PHP 4, PHP 5, PHP 7) Get and/or set the current session module string session_module_name ([ string $module ] ) session_module_name() gets the name of the current session module. Parameters: module If module is specified, that module will be used instead. Returns: Returns the name of the current session module.