|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-05 10:36 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 19:00:01 2025 UTC |
If i try to get the vaule of a cookie inside the class, the command HTTP_COOKIE_VARS return "" but if the same command run outside the class return the correct value Example Archivo userctl.inc <? class userctl { function userctl() { print $HTTP_COOKIE_VARS["ctl_user_cookie"]; // return "" } ?> Archivo test.phpA <? include("./userctl.inc"); $user = new userctl; print $HTTP_COOKIE_VARS["ctl_user_cookie"]; //return "value" ?>