php-db | 2001062
Date: 06/26/01
- Next message: olinux: "[PHP-DB] Extracting data from html files into csv"
- Previous message: Vipin Chandran: "[PHP-DB] stdin"
- In reply to: webmaster <email protected>: "[PHP-DB] Cookies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: olinux: "[PHP-DB] Extracting data from html files into csv"
- Previous message: Vipin Chandran: "[PHP-DB] stdin"
- In reply to: webmaster <email protected>: "[PHP-DB] Cookies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

