Forum Moderators: coopster
OS: Fedora Core 3
apache 2.0.54 - from source
apache 2.0.52 - from rpm
php 5.0.4
On one box session is working correctly the files in /var/lib/php/session are not 0 size when they are expected to hold some session data storing from scripts. But this is not case for another box. The actual session files are created but they are not filled with data as it is expected and they are always 0 size and session variables are empty.
The sites on both boxes are the mirrors of each other.
php.ini is identical.
permission on /var/lib/php/session are the same
both httpd are running under apache:apache user group.
Any clues? Thank you for any ideas.
P.S. Forgot to say both boxes are running under SELinux
Is the script working the same disregarding the session?
It's not of much help, hope someone will know better.
Best regards
Michal Cibor
if I create simple scripts
ses.php
<?
session_start();
$_SESSION["t1"] = "ses_test1";
?>
ses1.php
<?
session_start();
print_r($_SESSION);
?>
It works and data is written to session file and persistent along the site. But the settings from the actual scripts are not committed to file and not persistent. When I fill the $_SESSION array and then print it - it prints it but only on this script output where I filled it in and not another script. But the weirdness that the same actual scripts are working with session ok on another box.
Hence the conclusion is since simplest test session scripts are working, the session handling works with Apache and php. What else left to check? Permissions on the scripts, owner:group, security context?
All ideas are welcome, thank you.