Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 16, 2009, 9:31 pm
rate this thread
Bleah. I have no recourse but to do something on aa archaic server...
I want to set a session variable and have it 'live' through the
session lifetime. I do this:
$HTTP_SESSION_VARS['FRED'] = "ETHYL";
and 'FRED' is var_dumped.
I comment out the assignment statement and reload the page, the
var_dump has zero elements.
I've never touched a version of PHP so old so I'm clueless why this
is. I understand the 'superglobal' difference, and that
$HTTP_SESSION_VARS isn't 'super' like $_SESSION.
I tried adding session_register('FRED') but still no joy.
How the heck to session variables work on 4.0.4pl1? I'm starting to
think they don't! It looks like $HTTP_SESSION_VARS is behaving as an
ordinary variable - like I'm not setting anything in the session at
I did check session_id() when repeating the above code, and the
session ids are the same both times, so clearly I am creating and
using a single session.
I know I'm baffled. I may also be stupid. Am I doing something