session_register

(PHP 4 )

session_register --  Register one or more variables with the current session

Description

bool session_register (mixed name [, mixed ...])

session_register() variable number of arguments, any of which can be either a string holding the variable name or an array consisting of such variable names or other arrays. For each encountered variable name, session_register() registers the global variable named by it with the current session.

This function returns true when the variable is successfully registered with the session.

Note: This function was added in PHP 4.0.