Hi
I'm having a weird deal with setting cookies on win 2k servers at the moment.
Basically i have a perl script and it will not set any cookies on win2k machines running IIS5.0 however crazily it works just fine on win xp (IIS 5.1)??
The problem just seems to be related to win 2000.
I've heard from some php guys that there is a syntax problem affecting cookies being set on win2k servers so i'm wondering if perl is affected here as well?
According to the php lot the only workaround is to do this:
<?php
setcookie('username', $user, time()+3600, '/', '', 0);
setcookie('password', $pass, time()+3600, '/', '', 0);
?>
I have tried the above php code and it works great however i need/want to use perl on this
occasion, heres what i have in perl assuming $user, $pass & $exptime are already delcared and populated:
print ("Set-Cookie: name=", ($user), "; expires=", $exptime,"; path=/\n");
print ("Set-Cookie: name=", ($pass), "; expires=", $exptime,"; path=/\n");
Does anyone know if perl is affected by this syntax problem on win 2k machines,
if so can you spot a problem with the perl code above? if not is there any way to declare it differently along the lines of the php way that works above.
any info on this one is really appreciated as the script is to be depolyed on a live win2k server and I'm scuppered unless i can to the bottom of this.
thanks v much
Kenny
I'm having a weird deal with setting cookies on win 2k servers at the moment.
Basically i have a perl script and it will not set any cookies on win2k machines running IIS5.0 however crazily it works just fine on win xp (IIS 5.1)??
The problem just seems to be related to win 2000.
I've heard from some php guys that there is a syntax problem affecting cookies being set on win2k servers so i'm wondering if perl is affected here as well?
According to the php lot the only workaround is to do this:
<?php
setcookie('username', $user, time()+3600, '/', '', 0);
setcookie('password', $pass, time()+3600, '/', '', 0);
?>
I have tried the above php code and it works great however i need/want to use perl on this
occasion, heres what i have in perl assuming $user, $pass & $exptime are already delcared and populated:
print ("Set-Cookie: name=", ($user), "; expires=", $exptime,"; path=/\n");
print ("Set-Cookie: name=", ($pass), "; expires=", $exptime,"; path=/\n");
Does anyone know if perl is affected by this syntax problem on win 2k machines,
if so can you spot a problem with the perl code above? if not is there any way to declare it differently along the lines of the php way that works above.
any info on this one is really appreciated as the script is to be depolyed on a live win2k server and I'm scuppered unless i can to the bottom of this.
thanks v much
Kenny