I am trying to restore my old site which was built on PHP 5.6; the following code is causing a 500 Error It has something to do with the session_start however I don't know how I can fix this to work.
Please could someone take a look and find a possible solution.
<?php
session_start();
include('_config/logged-out.php');
$login = clean($_GET[login]);
if(isset($_SESSION[usr_name]) && isset($_SESSION[usr_level]) && login!=logout) echo('<meta http-equiv="refresh" content="0;url=https://example.com" />'); else { } ?>