session register not working since being deprecated
<p>I've 2 files [a.php and b.php]</p>

<p>The a.php code</p>

<pre><code>&lt;?PHP
$msg= "Hello world";
session_register('msg');
header("Location: b.php ");
exit;
?&gt;
</code></pre>

<p>And the b.php code</p>

<pre><code>&lt;?PHP echo  $msg ; session_unregister('msg')?&gt;
</code></pre>

<p>but </p>

<p>php manual saying "<code>This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.</code>"</p>

<p>so any changes i could make so that it working again ?</p>
