cat /var/log/php7.4-fpm.log
#change php version
session_destroy();
session_unset();
unset($_SESSION["loggedin"]);
$_SESSION = array();
For those interested. Works with older than 4.3 versions.
<?php
function byteConvert($bytes)
{
$s = array('B', 'Kb', 'MB', 'GB', 'TB', 'PB');
$e = floor(log($bytes)/log(1024));
return sprintf('%.2f '.$s[$e], ($bytes/pow(1024, floor($e))));
}
?>