John Holmes wrote:
> You have session_start() on the second page, too, right??
>

Yes...the session_start() statement is in a global include file, which is
included in all files which require it

Grtz Erwin

>> -----Original Message-----
>> From: Erwin [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, September 20, 2002 5:45 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] Sessions
>>
>> Hi all,
>>
>> I'm having a problem with sessions. I use PHP version 4.2.2.
>> The project I'm working on, only uses the global variables, $_GET,
> $_POST
>> and $_SESSION.
>>
>> When I store something in the $_SESSION variable, everything goes
> well. I
>> can print the contents of this array with print_r, and every variable
> I
>> stored is there. But when I leave the page with the header(...)
> directive
>> (or any other way), the session is empty!
>>
>> The session file contains no data (so it is created!), the $_SESSION
>> variable is empty...
>>
>> Some extra information:
>> - I've tried this on PHP 4.1.2, and that works OK
>> - I've tried output_buffering (on and off)
>> - I've tried registered_globals (on and off)
>> - I've tried using "session_write_close()" before leaving the page
>> - I've checked the "session_start()" statement (Yes, it's there :-) )
>>
>> I hope someone can help me with this...
>>
>> Thanks in advance,
>>
>> Erwin
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php


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

Reply via email to