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 $session on further imports. session_register is deprecated and I'm not sure what =& does.
I read this question but I think all the answers seem to assume that $session is already defined?
session_register("session");
$session =& $_SESSION['session'];
Removing the first line seems to ignore any session related data in game, so how would I port these two lines over?