Hello, and welcome to PHPBuilder! 🙂
You can only edit posts within a certain time period after they're posted. 😉 It may be a really short time period for new members ... I'm not a mod, so I have no idea about that.
There is, generally, no reason to do output buffering in a standard PHP script that needs session support, unless you, for some reason, are producing output prior to the session_start() call.
Also, there is no use case that I can justify at present for error_suppression on variable assignments, or the session_start() call itself.
Change your first script thus:
<?php
//ob_start();
session_start();
$current_file = $_SERVER['SCRIPT_NAME'];
$http_referer = $_SERVER['HTTP_REFERER'];
... and see if anything changes.