Forum Moderators: coopster

Message Too Old, No Replies

Cookie's don't work anymore

after upgrading php

         

RussellC

8:01 pm on Feb 18, 2004 (gmt 0)

10+ Year Member



I upgraded my php version to 4.3.4 and now my very simple cookies dont work.

After the script check if the username and password are valid it sets a cookie:

setcookie('ck_user', $user);
header("Location: /main.php");

then on the main.php page:

if (!$_COOKIE['ck_user']) {
header("Location: /login.html");
} else {
$user = $_COOKIE['ck_user'];
setcookie("ck_user", $user);
....

anyone know why the cookie wont even set. I have been looking at the php manual and serching google to no avail.

Thanks for any help.

-Russell

RussellC

8:47 pm on Feb 18, 2004 (gmt 0)

10+ Year Member



I think this might have to do with the the config of my setup. It's just a test server with php installed in IIS via CGI not ISAPI.

RussellC

9:35 pm on Feb 18, 2004 (gmt 0)

10+ Year Member



Nevermind. I reinstalled php as an ISAPI module and it still wont work. Any help?