Re: [PHP] Sessions not working on Linux - Apache - FOllow Up

2004-05-12 Thread Zac
Have looked at this more and can now tell you that this is definatley 
down to the server not writing any contents into the sess_nnn file.

Does anyone have any ideas why this would happen? I've checked all 
permissions and tried changing the save_path to another folder that I 
created specifically for the sessions with global write permissions this 
had no effect.

Made sure the $_SESSION[name] had '  - $_SESSION['name'] made no 
difference. (Thanks though)

Any help really appreciated.

Zac


Running on apache 1.3

session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = i
session.auto_start = 0
session.cookie_lifetime = 0
session_start() is included in the top of each page.

When I test session files are being written into the /tmp folder and the 
session variable is corerctly added to the url when moving to another 
page, BUT the sessions do not appear to be working?

I can set a session var on one page and display it there but when moving 
to another page the session var is no longer available?

If I look in the tmp folder a relevant sess_nnn file is there but 
contains no data. I've checked permissions and the /tmp folder is world 
writable and the sess_nnn file is owned by the web server and is writable?

Can anyone suggest what to test next or where the problem may be?

Thanks

Zac

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


Re: [PHP] Sessions not working on Linux - Apache

2004-05-12 Thread John Nichel
Zac wrote:
Thanks for your response:

PHP Version 4.2.2

$_SESSION[test] = 'testData';

Regards

Zac
Please respond to the list, and not to an individual user (unless asked 
of course).

Try adding quotes around your key...

$_SESSION['test'] = "testData";

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions not working on Linux - Apache

2004-05-12 Thread Zac
>> What version of PHP?  How are you 'setting' session variables?

Version 4.2.2

$_SESSION[test] = 'testData';

Cheers

Zac

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


Re: [PHP] Sessions not working on Linux - Apache

2004-05-12 Thread John Nichel
Zac Hillier - Net Affectors wrote:
Running on apache 1.3

session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = i
session.auto_start = 0
session.cookie_lifetime = 0
session_start() is included in the top of each page.

When I test session files are being written into the /tmp folder and the 
session variable is corerctly added to the url when moving to another 
page, BUT the sessions do not appear to be working?

I can set a session var on one page and display it there but when moving 
to another page the session var is no longer available?

If I look in the tmp folder a relevant sess_nnn file is there but 
contains no data. I've checked permissions and the /tmp folder is world 
writable and the sess_nnn file is owned by the web server and is writable?

Can anyone suggest what to test next or where the problem may be?

Thanks

Zac
What version of PHP?  How are you 'setting' session variables?

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Sessions not working on Linux - Apache

2004-05-12 Thread Zac Hillier - Net Affectors
Running on apache 1.3

session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = i
session.auto_start = 0
session.cookie_lifetime = 0
session_start() is included in the top of each page.

When I test session files are being written into the /tmp folder and the 
session variable is corerctly added to the url when moving to another 
page, BUT the sessions do not appear to be working?

I can set a session var on one page and display it there but when moving 
to another page the session var is no longer available?

If I look in the tmp folder a relevant sess_nnn file is there but 
contains no data. I've checked permissions and the /tmp folder is world 
writable and the sess_nnn file is owned by the web server and is writable?

Can anyone suggest what to test next or where the problem may be?

Thanks

Zac

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