This code works just fine with IIS5 and apache for win. but when I try it on the linux-server it gives me this error:
Warning: open(//sess_1a41b6944f31c782b88a444c14291071, O_RDWR) failed: Permission denied (13) in /var/www/html/phplogin/login.php on line 3
can somebody guide me?
session_save_path("/");
session_start();
$bLoginSuccess = 0;
if ($sUsername == "Rickard" && $sPassword == "12345")
{
$bLoginSuccess = 1;
}
session_register(bLoginSuccess);
global $bLoginSuccess;
header ("Location: thesite.php")