[phplib] Bug or problem with class and HTTP_COOKIE_VARS From: Jorge Cisneros (jorge <email protected>)
Date: 07/03/00

The problem is the follow

  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"
?>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>