RE: [PHP] cookie question

From: Date: Fri, 04 Jul 2003 08:22:46 +0000
Subject: RE: [PHP] cookie question
Groups: php.general 
Request: Send a blank email to php-general+get-153964@lists.php.net to get a copy of this message
Try setcookie("auth","$val",time() + 3600,"/",".avenew.com"); also look here : http://examples.weberdev.com/get_example.php3?count=67 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: David R [mailto:dreiff@avenew.com] Sent: Friday, July 04, 2003 9:44 AM To: php-general@lists.php.net Subject: Re: [PHP] cookie question I have never read anything about a production server domain. How do I set the cookie for it? Thanks. David R "Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message news:3F051B4C.3040904@buyer-brokerage.com... > David R wrote: > > >Hello, > >I have a cookie question. > > > >I have the following code is a file called tc.php > > > ><? > >global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ; > > $val="123"; > > setcookie ("auth", $val , time() + 3600); > > $cookie = $HTTP_COOKIE_VARS['auth']; > > echo "cookie is: $cookie"; > >?> > > > >I have no problem retrieving the value cookie value ( 123 ) on my > >local machine but when I post to the internet I can't get the cookie > >value. > > > >Any ideas why? > > > Did you set the cookie for the production server domain? Cookies for > your local machine won't still be there once you upload, you know. > > -- > The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#153964) next »