yup, it's set correctly. It actually creates the file (I've opened it in a text editor) with the correct variable names, but just no values. "R'Twick Niceorgaw" <[EMAIL PROTECTED]> wrote in message 065d01c1956a$f1321db0$[EMAIL PROTECTED]">news:065d01c1956a$f1321db0$[EMAIL PROTECTED]... > Have you set the session.save_path properly in php.ini ? By default it is > set to /tmp which doesn't work under Win* systems. You need to point it to a > valid directory on your machine. > > HTH > > ----- Original Message ----- > From: "Alastair" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 04, 2002 4:35 PM > Subject: Re: [PHP] problem reading sessions > > > > I get the error: 'Warning: Undefined index: blah' when I use the long > name. > > As far as I can tell it doesn't seem to be actually writing the data into > > the session file. Am I missing a crucial step somewhere? > > > > alastair > > > > "Kevin Stone" <[EMAIL PROTECTED]> wrote in message > > 003401c19563$95ee2e00$[EMAIL PROTECTED]">news:003401c19563$95ee2e00$[EMAIL PROTECTED]... > > > I'll add if you do not have register_globals set then you can access the > > > variable by its long name, $HTTP_SESSION_VARS["blah"]. > > > > > > -Kevin > > > > > > > > > > Is register_globals set to 'on' in php.ini? It needs to be for this > > coding > > > > style to work. > > > > > > > > Kirk > > > > > > > > > -----Original Message----- > > > > > From: Alastair [mailto:[EMAIL PROTECTED]] > > > > > Sent: Friday, January 04, 2002 1:41 PM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: [PHP] problem reading sessions > > > > > > > > > > > > > > > > > > > > I have just recently set up PHP on my Win2K laptop and I have > > > > > just found out > > > > > that I can't read sessions. As far as I can tell the session > > > > > file is being > > > > > created, but PHP doesn't seem to be able to get any data into it. > > > > > > > > > > Here is what the session file looks like: > > > > > !sess_user|!blah| > > > > > > > > > > The two PHP files look like this: > > > > > > > > > > test_session1.php > > > > > <? > > > > > $blah = "good"; > > > > > session_start(); > > > > > session_register("blah"); > > > > > ?> > > > > > > > > > > > > > > > test_session2.php > > > > > <? > > > > > session_start(); > > > > > echo session_is_registered("blah") . "<br>"; > > > > > echo session_encode(). "<br>"; > > > > > echo isset($HTTP_SESSION_VARS) . "<br>"; > > > > > echo sizeof($HTTP_SESSION_VARS) . "<br>"; > > > > > > > > > > echo $blah; > > > > > ?> > > > > > > > > > > For the second PHP page the ouput I get is: > > > > > - true for the 'session is registered' function > > > > > - the string that is found in the session file (listed above) > > > > > - true for the 'isset' function > > > > > - size of zero > > > > > - The warning: 'Warning: Undefined variable: blah ' > > > > > > > > > > Does anybody know why I would not be able to read these variables? > > > > > > > > > > thanks, > > > > > alastair > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]