Posted by Pedro Graca on 11/06/06 22:17
Michael Windsor wrote:
[...]
> session
[...]
> Directive Local Value Master Value
[...]
> session.save_path no value no value
[...]
I believe `session.save_path` is your problem.
If there's no value for it, PHP will use "/tmp". Do you have a "C:\tmp"
directory on your disk?
Try changing php.ini and specify an existing directory for the
session.save_path entry, or create a "C:\tmp" directory.
Or do it within a test script first:
<?php
# session_save_path('C:/WINDOWS/TEMP');
session_save_path('C:\\WINDOWS\\TEMP');
session_start();
if (rand(0, 1)) {
echo "Using copy of the \$_SESSION array...<br>\n";
$COPY_SESSION = $_SESSION;
if (rand(0, 1)) {
echo "and not copying it back.<br>\n";
} else {
$_SESSION = $COPY_SESSION;
}
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
$val = ++$_SESSION['count'];
} else {
if (!isset($_SESSION[çount'])) {
$_SESSION['count'] = 0;
}
$val = ++$_SESSION['count'];
}
echo "Current value is $val.<br>\n";
?>
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
[Back to original message]
|