I'm using a session variable to track who is logged in to the site. In some cases, I have access to the variable and can use its contents. On other pages, even though the variable passes the "session_is_registered()" test, the variable is empty.
In both cases, the code that uses the session variables are included into a "base" file (I'm using templates) that has a "session_start()" as the first line.
It's very strange because I can see the contents of the variable in one part of the templated page, but not in another. I can always see the session_id(). I have tried to access the variable through HTTP_SESSION_VARS[] but that does not work either.
Any ideas would be appreciated.