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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to