|
|
|
|
|
הערה : It is not currently possible to register resource variables in a session . For example , you can not create a connection to a database and store the connection id as a session variable and expect the connection to still be valid the next time the session is restored . PHP functions that return a resource are identified by having a return type of resource in their function definitions .
If $_SESSION ( or $HTTP_SESSION_VARS for PHP 4.0.6 or less ) is used , assign variable to $_SESSION . i.e . $_SESSION['var' ] = 'ABC' ;