You are here: Re: $_SESSION / $HTTP_SESSION_VARS behaviour « PHP Programming Language « IT news, forums, messages
Re: $_SESSION / $HTTP_SESSION_VARS behaviour

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*.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация