if u use cokkies, and already have set one, you should be able to call this cookie with the name you gave it. For example we'll create a cookie which name is username, and which has a value of 'foo'
setcookie('username','foo',time()+86400);
in PHP a varible will be created with the name username ($username) with a value 'foo'
<?php
setcookie('username','foo',time()+86400);
?>
<head>
<title>welcome here <?=$username?></title>
</head>
<body></body>