Very odd PHP error, any file name that starts with admin (admin.php/admintest.php)

#1
I'm testing LSWS now with LSAPI built using PHP 4.4.4. Under Apache everything is fine and under most conditions Litespeed is ok also.

However, one very odd problem that cropped up is session variables don't seem to work SPECIFICALLY for admin.php. I can have the exact same code in a file called newadmin.php and it works just fine:

e.g

PHP:
session_start();
echo $_SESSION['adminlevel'];
This should return the current adminlevel variable stored in the session BUT this exact same code works in newadmin.php but fails in admin.php and admintest.php.

This also only fails in the root directory of the virtualhost. Subdirectories work fine. With version 4.4.4 as an Apache module running on Apache 1.337, the exact same configuration is fine. Could this be a problem with LSAPI?
 
#3
Looks like a cookie path problem.
The cookie path is set to /. The exact same settings (same php.ini being used) works ok for Apache and PHP4. Changing the file name from admin.php to newadmin.php and the script starts working in a directory where there are no .htaccess rewrite rules.
 

mistwang

LiteSpeed Staff
#4
Please try disabling .htaccess see if it is the cause. You can also dump phpinfo in your script to help identify the problem.
 
Top