Andriy_Martynyuk
New Pleskian
Hi ppl,
while using the code similar to:
We get error:
The error appears until we disable CageFS for this domain.
So we try to set a "session.save_path" variable wia plesk admin but php_info still shows session.save_path is (/var/lib/php/session). Will provide any additional info necessary.
Please help.
while using the code similar to:
PHP:
<?php
// Start the session
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
// Set session variables
$_SESSION["favcolor"] = "green";
$_SESSION["favanimal"] = "cat";
echo "Session variables are set.";
?>
<br>
<?php
// Echo session variables that were set on previous page
echo "Favorite color is " . $_SESSION["favcolor"] . ".<br>";
echo "Favorite animal is " . $_SESSION["favanimal"] . ".";
?>
</body>
</html>
Code:
Warning: session_start(): open(/var/lib/php/session/sess_n02m5jb0ipntqj3pvn14hebfg6, O_RDWR) failed: No such file or directory (2) in /DATA/www/<domain>/httpdocs/login/check_login.php on line 7 Notice: Undefined index: currentPage in /DATA/www/<domain>/httpdocs/login/check_login.php on line 48 Warning: Unknown: open(/var/lib/php/session/sess_n02m5jb0ipntqj3pvn14hebfg6, O_RDWR) failed: No suc h file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
So we try to set a "session.save_path" variable wia plesk admin but php_info still shows session.save_path is (/var/lib/php/session). Will provide any additional info necessary.
Please help.