and i got this on the new:
Notice: Undefined index: user_id in C:xampphtdocspastebinscriptsmain.php on line 83
and line 83 is:
$user = new User($_COOKIE['PHPSESSID'], $_SESSION['user_id']);