title: porting deprecated session_register to php 7
body: <p>Forgive me, I'm clueless when it comes to php. I'm trying to port an old game (legend of the green dragon) over to php 7, and it has the following code, I think it's registering a global 'session' key and using <code>$session</code> on further imports. <code>session_register</code> is deprecated and I'm not sure what <code>=&amp;</code> does.</p>
  
  <p>I read <a href="https://stackoverflow.com/questions/3682615/how-to-fix-the-session-register-deprecated-issue">this question</a> but I think all the answers seem to assume that <code>$session</code> is already defined?</p>
  
  <pre><code>session_register("session");
  $session =&amp; $_SESSION['session'];
  </code></pre>
  
  <p>Removing the first line seems to ignore any session related data in game, so how would I port these two lines over?</p>