Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001062

RE: [PHP-DB] Cookies From: Kristian Duske (ml.duske <email protected>)
Date: 06/26/01

> this doesnt work :echo $HTTP_COOKIE_VARS["nameCookie"]
>
> code to set cookie: setcookie("newsLogin",$value,time()+ 3348000);
>
> if i ask from the same page I get the values I need but not from
> a different page...

You are asking the wrong variable name. If you set a cookie variable named
"newsLogin", you have to query it with $HTTP_COOKIE_VARS["newLogin"], or, if
you enabled track_vars, you can simply do it by $newsLogin. PHP gives you
all cookie, post and get variables as global variables in your scripts.

Kristian

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>