Skip to content

Instantly share code, notes, and snippets.

@lieldulev
Created August 22, 2010 08:59
Show Gist options
  • Save lieldulev/543552 to your computer and use it in GitHub Desktop.
Save lieldulev/543552 to your computer and use it in GitHub Desktop.
<?php
$session_vars_to_return = array('HTTP_ACCEPT', 'HTTP_ACCEPT_CHARSET','HTTP_ACCEPT_ENCODING','HTTP_ACCEPT_LANGUAGE','HTTP_CONNECTION','HTTP_USER_AGENT','HTTP_X_FORWARDED_FOR','HTTP_COOKIE','HTTP_REFERER');
foreach($session_vars_to_return as $session_var){
if (isset($_SERVER[$session_var])){
echo '<b class="var">'.$session_var.'</b>:'.$_SERVER[$session_var].'<br/>';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment