A much better solution would be to either use the PHP built in session handler or create something similar using your own cookie-based session ID. This session ...
php.net