0

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 { } ?>
Johnny
  • 319
  • 1
  • 14
  • 2
    Please look at the webserver error log for the actual error message. Error 500 doesn't tell anyone much of anything other than the server had an error. It is probably having an issue with the storage for the session cookie, what is session.save_path set to and does the webserver have write access? – Alex Barker Aug 29 '19 at 23:25
  • Put this at the very top of your `php` --> https://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display if you don't have access to logs. – Zak Aug 29 '19 at 23:27

0 Answers0