note 119822 deleted from function.session-register by cmb

From: Date: Wed, 24 Feb 2021 12:10:59 +0000
Subject: note 119822 deleted from function.session-register by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-219288@lists.php.net to get a copy of this message
Note Submitter: david dot jufer at kirchenweb dot ch ---- This code replaces the removed function "session_register" for PHP >= 5.4.0 "session_start()" must be called before. <?php function session_register($name){ if(isset($GLOBALS[$name])) $_SESSION[$name] = $GLOBALS[$name]; $GLOBALS[$name] = &$_SESSION[$name]; } ?>

« previous php.notes (#219288) next »