Replacing $_SESSION with session_register