"Tom Rogers" wrote:

> I am sure they do not but....
> I just tried reading the docs and it is as clear as mud so its back to
> the suck it and see method

>From the on-line docs, regarding $_SESSION (at
http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.sessi
on):

"This is a 'superglobal', or automatic global, variable. This simply means
that it is available in all scopes throughout a script. You don't need to do
a global $_SESSION; to access it within functions or methods, as you do with
$HTTP_SESSION_VARS."

So, this gets more perplexing.

I should also note that I did try to use the global keyword, and it didn't
help.  Also, I tried setting the $_SESSION variables in question to
something else ($_SESSION["fname"] = " ") before calling the function.
Didn't help either.

I have just never had a problem with sessions before.  But I'm guessing it's
my code, as I can replicate the behavior on three different installations of
PHP/Apache.
-- 
Jeff Stillwall


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to