Page 1 of 1
PHP4 (sapi php4isapi.dll or php.exe) with IIS5.0
Posted: Wed Jul 31, 2002 3:15 am
by ntjang
Hello everybody!
We run PHP4 with IIS5.0. If we use php.exe, set_cookie run not properly. If we use php4isapi.dll, IIS was usually damaged.
Who can I show me the way to solve this problem.
Thank you very much.
Posted: Wed Jul 31, 2002 3:18 am
by twigletmac
setcookie() should work whether you use the CGI or ISAPI version of PHP. By not work properly, what do you mean?
Mac
Setcookie
Posted: Wed Jul 31, 2002 4:53 am
by ntjang
twigletmac wrote:setcookie() should work whether you use the CGI or ISAPI version of PHP. By not work properly, what do you mean?
Mac
I want to say about function "setcookie" of PHP. If I use this function with CGI, it work not properly.
Example:
I type the follow code in page Login.php:
$username="ntjang298";
setcookie(
"COOKIE_USERNAME", //string name
"$username", //string value
$expire, //int expire
"", //string path
"", //string domain
0 //int secure
);
In another page as index.php:
echo $COOKIE_USERNAME;
Nothing display.
Can you help me?
Posted: Wed Jul 31, 2002 4:55 am
by twigletmac
Have you read this:
http://www.devnetwork.net/forums/viewtopic.php?t=511
Have you tried:
Code: Select all
echo $_COOKIEї'COOKIE_USERNAME'];
Mac