Date: 07/03/00
- Next message: Kartic Krishnamurthy: "Re: [phplib] Bug or problem with class and HTTP_COOKIE_VARS"
- Previous message: Bryan McGuire: "Re: [phplib] Registration page validation problem"
- Next in thread: Kartic Krishnamurthy: "Re: [phplib] Bug or problem with class and HTTP_COOKIE_VARS"
- Reply: Kartic Krishnamurthy: "Re: [phplib] Bug or problem with class and HTTP_COOKIE_VARS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Kartic Krishnamurthy: "Re: [phplib] Bug or problem with class and HTTP_COOKIE_VARS"
- Previous message: Bryan McGuire: "Re: [phplib] Registration page validation problem"
- Next in thread: Kartic Krishnamurthy: "Re: [phplib] Bug or problem with class and HTTP_COOKIE_VARS"
- Reply: Kartic Krishnamurthy: "Re: [phplib] Bug or problem with class and HTTP_COOKIE_VARS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

