test.php
<?php
session_start();
$_SESSION['ID'] = "112233";
$_SESSION['token'] = "mytoken";
print $_SESSION['ID'];
print $_SESSION['token'];
?>
<a href="test2.php">info 2</a>
test2.php
Sessie:
<?php
session_start();
print $_SESSION['ID'];
print $_SESSION['token'];
?>
<a href="test.php">info</a>
Doe ik iets niet goed of wat zou het probleem kunnen zijn?
En als ik op de eerste pagina deze code set:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
Dan krijg ik de volgende foutmelding:
Warning: session_start(): open(/data/www/website.nl/temp/sess_11qlppthvtmthqasiqbc3ja51g, O_RDWR) failed: No such file or directory (2) in /data/www/website.nl/www/test.php on line 27 Warning: session_start(): Failed to read session data: files (path: /data/www/website.nl/temp) in /data/www/website.nl/www/test.php