I'm using the Windows version 0.5.4, not sure if this problem also
exists on other platforms. PHP is set up with phpcgi handler (conf
file is shown below this email) PHP always fails to read session data.
I found this problem with a larger PHP project. I then wrote a simple
PHP script to demo this, see below.
Note that the same script works fine when PHP is used with fcgi handler
on Cherokee. It also works fine as CGI with other web servers I've
tested.
--
Best regards,
Jack
------------------------------
Port 80
DocumentRoot "d:\Internet\Servers\Cherokee\www\"
DirectoryIndex index.htm
Directory / {
Handler common
}
Directory /images {
Handler file
}
Extension php {
Handler phpcgi {
Interpreter d:\Internet\PHP\php-cgi.exe
}
}
------------------------------
<?
session_start();
if(isset($_SESSION['test']))
{
if (isset($_GET['action']))
{
if ($_GET['action'] == 'logout')
{
session_destroy();
header('Location: session_test.php');
}
else echo '<a href="session_test.php?action=logout">Log
Out</a>';
}
else echo '<a href="session_test.php?action=logout">Log Out</a>';
}
else
{
if (isset($_GET['action']))
{
if ($_GET['action'] == 'login')
{
$_SESSION['test'] = 'test';
header('Location: session_test.php');
}
else echo '<a href="session_test.php?action=login">Log In</a>';
}
else echo '<a href="session_test.php?action=login">Log In</a>';
}
?>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee