Sortof, it depends on what kind of session settings you have setup.
You can use code like this to set a session variable, though it requires the client to request it, or you could set a normal cookie using the instructions elsewhere on the forum, and check for that to create a session var after redirection.
Code:
<?php
ob_start();
$token = md5($_SERVER['REMOTE_ADDR']);
if(!isset($_SESSION['token'])||$_SESSION['token']!==$token)$_SESSION['token'] = $token;
$value="isplaying+on|FontSize+foSL|MP3+on|MP31+1";
setcookie("ASKAPACHEP", $value, time()+86400, "/", ".askapache.com");
$res='R0lGODlhAQABAIAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==';
$c=base64_decode($res);
header('Content-Length: '.strlen($c));
header('Content-Type: image/gif');
echo $c;
exit;
?>