Cookie ?

From: Date: Sun, 01 Jul 2001 02:44:27 +0000
Subject: Cookie ?
Groups: php.general 
Request: Send a blank email to php-general+get-55706@lists.php.net to get a copy of this message
I wanted to do something like set the cookie for 5 minutes, then as the user uses the system each page would refresh so to speak the timeout always setting it back to 5 minutes as long as he was using it. I beleive this is not really working. Any Ideas on how I can accomplish this ?? Thanks Here is the function I was using to set the cookies... function f_put_cookie($user_name,$user_email,$account_type) { global $HTTP_COOKIE_VARS; if(isset($c_user_name)) { setcookie("c_uas_time","GREEN",(time()+400),'/','website.com',0); } else { setcookie("c_user_name",$user_name,(time()+400*30*12),'/','.website.com',0); setcookie("c_user_email",$user_email,(time()+400*30*12),'/','.website.com',0); setcookie("c_account_type",$account_type,(time()+400*30*12),'/','.website.com',0); setcookie("c_uas_time", "GREEN",(time()+400),'/','.website.com',0); } } ___________________________________________________________ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net

« previous php.general (#55706) next »