Re: cookie ( still not working )
| From: | richard dot mail at softhome dot net | Date: | Wed, 10 Jul 2002 10:08:43 +0000 |
| Subject: | Re: cookie ( still not working ) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106741@lists.php.net to get a copy of this message | ||
Johan Holst Nielsen writes:
register_globals = on i simpley put an cookie with : setcookie("gfo_cms" ,$sessid , ''); and i read it with : <? if (isset($HTTP_COOKIE_VARS["gfo_cms"])) { $sessid = $HTTP_COOKIE_VARS["gfo_cms"]; if (!check_valid_sessid($sessid)) { login_form(); } if (!check_ip($sessid, $REMOTE_ADDR)) { login_form(); } $rights = get_user_rights($sessid); $user_id = get_userid_from_sessid($sessid); } if (!isset($HTTP_COOKIE_VARS["gfo_cms"])) { login_form(); } ?> the last code looks if the cookie exists ... but it look likes it won't even create the cookie an idea's ?my cookie problem is still not solved :( my browser settings are correct, and the script has worked. but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :( does any one have an solution ?? thnx in advance,Sure about your register_globals = off? please show us the source, or a link to at phps file... And a link to a phpinfo() file? I cant help you without further information! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php the setting in php.ini :