Tracking IDs lose their identity

Submitted by Vphoner on Thu, 10/11/2007 - 02:04.
I have noticed that my passed parameters (using php and session variables) sometimes lose their way. I have a fallback ID that shows up when the variable is not found or out of range. I see this fallback ID everyday in my tracking reports on the affiliate reports. Anyone else notice this? That your tracking ID or passed parameters disappear to a default. I don't get enough organic clicks to account for this. I have noticed it on new pages that had not even been indexed. Anyway to program in PHP to keep the variables alive longer?

Tracking IDs lose their identity
Save the session id to a cookie....
<?php //initiate the session session_start(); //set the cookie value to the current session id $cookie_value = session_id(); //set the cookie to expire in 30 days $cookie_expires = time() + (60*60*24*30); //use the setcookie function to write the cookie setcookie('cookie_name', $cookie_value, $cookie_expires, '/', '.quityourdayjob.com'); ?>For more on cookies:
http://us3.php.net/setcookie
For more on sessions:
http://us2.php.net/session
Best,
Jeremy