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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 18 January, 2001 9:59 AM
  To: [EMAIL PROTECTED]
  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

Reply via email to