I'm not that familiar with cookies in PHP, I think that's how you're wanting to do it, is with PHP?. It shouldn't be to difficult to do what you're wanting with PHP.
This should show you how to set and retrieve cookies with PHP and give you some nice examples
http://us4.php.net/setcookie . It should also show you how to set them to expire after a certain amount of time.