Session variables not saved
Posted: Thu Feb 03, 2005 4:45 pm
I am having a problem with session variables. When I run a test program as simple as:
<?php
session_start();
$_SESSION['test'] = "test";
?>
The variable gets saved when the script is run from the command line, but the sess_ file is empty when the same script is run from a browser. This worked before, but something changed to cause it to no longer save to disk. It seems that Apache might be the culprit but I have no idea how to troubleshoot this.
<?php
session_start();
$_SESSION['test'] = "test";
?>
The variable gets saved when the script is run from the command line, but the sess_ file is empty when the same script is run from a browser. This worked before, but something changed to cause it to no longer save to disk. It seems that Apache might be the culprit but I have no idea how to troubleshoot this.