php-general | 2001062
Date: 06/30/01
- Next message: Brad Hubbard: "Re: [PHP] Capturing output of shell script."
- Previous message: Jack Sasportas: "Re: [PHP] (slightly OT) the bad and the good (hosting recommentations)"
- Next in thread: Jon Yaggie: "Re: [PHP] Cookie ?"
- Reply: Jon Yaggie: "Re: [PHP] Cookie ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brad Hubbard: "Re: [PHP] Capturing output of shell script."
- Previous message: Jack Sasportas: "Re: [PHP] (slightly OT) the bad and the good (hosting recommentations)"
- Next in thread: Jon Yaggie: "Re: [PHP] Cookie ?"
- Reply: Jon Yaggie: "Re: [PHP] Cookie ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

