Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

[PHP3] RE: Problem with cookies From: Chris Carbaugh (chris <email protected>)
Date: 03/31/00

Only other thing I can think of is to try to add the domain to the setCookie
call.

Also make sure $CookieLiveTime is valid. You may want to watch your cookie
directory to see if any thing is added as well.

Good luck,

Chris

> -----Original Message-----
> From: Pascal Robert [mailto:robertp <email protected>]
> Sent: Friday, March 31, 2000 2:20 PM
> To: chris <email protected>; php3 <email protected>
> Subject: RE: Problem with cookies
>
>
> At 13:33 -0500 31/03/2000, Chris Carbaugh wrote:
> >I just had a problem with cookies that were being set from
> within the sites
> >directory tree.
> >
> >setcookie("ProtoType", $cookie_val, (time() + 600),
> "/your/dir/here");
> >
> >This is covered some in the manual. Also check out
> faqts.com, that's where
> >I found a good example.
>
> Ok, I tried with:
>
> if($CookieUser!="");
>
> SetCookie("CookieUser",$CookieUser,(time()+$CookieLiveTime),"/
> ~corpo/");
> endif;
>
> echo $CookieUser;
> echo $HTTP_COOKIE_VARS["CookieUser"];
>
> $CookieUser has the good string, but $HTTP_COOKIE_VARS["CookieUser"]
> is empty (null string). BTW: I tried both echo in the same function
> as SetCookie.
> --
>
> +--------------------------------------------------------------------+
> Pascal Robert Mlink Internet, une compagnie PSINet Limited
>
> mailto:probert <email protected> mailto:robertp <email protected>
>
> http://www.Mlink.NET/
> +-------------------------------------------------------------
> -------+

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>