maybe you'll find by this Link http://www.php.net/manual/en/language.oop.php
useful information! :-) I'm a newbe too!*g*
Moderators: macek, egami, gesf

mrusi wrote:Hi,
I have following problem,
with a code something like this:
<?php
session_start();
$HTTP_SESSION_VARS['user']=1;
if (isset($HTTP_SESSION_VARS['user'])){
echo "hi";
}
?>
In this case, it works, the output is "hi" as expected.
But when I make it like this:
<?php
session_start();
$HTTP_SESSION_VARS['user']=1;
f();
function f(){
if (isset($HTTP_SESSION_VARS['a'])){
echo "hi";
}
}
?>
In this case, I get no output.Could somebody please
explain me this? I guess the HTTP_SESSION_VARS
cannot be seen inside of a function. Is there a
workaround for this?
Thanks in advance:
Gabor

Users browsing this forum: No registered users and 2 guests