Thanks guys that helped a lot, but I've got this string now:
$_SESSION['current_url'] = 'http://', $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING'];
and I keep getting this error:
Parse error: syntax error, unexpected ',' in /home/jclickth/public_html/includes/security.php on line 7
Any ideas?