NYCPHP Meetup

NYPHP.org

[nycphp-talk] retro php

Kenneth Dombrowski kenneth at ylayali.net
Tue Oct 14 03:01:20 EDT 2003


Hi,

I'm new enough to PHP that I've always used $_SESSION-style superglobals
with register_globals off & etc, but now I find myself trying to get a
project to run on 4.0.6

At first the docs led me to the conclusion: No problem, I'll just change
all those $_SESSION collections to $HTTP_SESSION_VARS, but the values
I'm setting don't seem to be installing themselves into the session at
all. The PHPSESSID out of $HTTP_COOKIE_VARS stays the same, but
$HTTP_SESSION_VARS seemingly empties out on every page load. 

Any idea if it's some odd server config? The scant remaining docs about
HTTP_SESSION_VARS make me feel like it should work pretty much the same
way $_SESSION does on our 4.2.2 server.. where the code does work. I
can't find anything specific to these deprecated globals.. 

Of course I am calling session_start()

&, no. sadly, upgrading the server doesn't count as a solution, though
I've been advocating it for some time.

Is this a familiar problem? 

Thanks,
Kenneth




More information about the talk mailing list