RE: [PHP] help me!! Cookie

From: Date: Thu, 18 Jan 2001 19:23:57 +0000
Subject: RE: [PHP] help me!! Cookie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35424@lists.php.net to get a copy of this message
When not explicitly set, a cookie works only for the domain where it was originally set. That means that if the user visits your website using the server IP address, he will receive a cookie that will not work when he uses the domain name instead of the IP address. Therefore, I recomend you set the domain property of the cookie to the name of your domain (not the IP or "localhost"). This way, you will make explicit in which enviroment the cookie works. I am not familiarized with the sintax you are using, I usually use setcookie and session_register for a similar purpouse. Hope I'd been of any help. Cheers. PD. Why don't you publish your problem to the whole php list? -----Original Message----- From: frisongiancarlo@hotmail.com [mailto:frisongiancarlo@hotmail.com] Sent: Thursday, 18 January, 2001 9:59 AM To: dful@metahogar.com Subject: [PHP] help me!! Cookie this is not a span mail i wanna only ask you a question of php argument, please help me! i'm working with php3 and IIS, i had set cookie with: name, $session->cookie, $session->timeid+3600, "/"); ?> but these cokkie work right only on localhost and not on the others computer of the LAN, the options setting of internet enable Cookie, where is the problem? thank you !!! Per disattivarsi dalla mailinglist : http://www.e-smtech.com/service/multimail/delvis.php3

« previous php.general (#35424) next »