<?php
session_start();
// store session data
$_SESSION['count']=0; ?>
<html><head></head>
<body>
<?php include ("getElement.php");
echo getLinkButton("myscript.php", "myscript.php");
echo $_SESSION['count']++; ?>
</body>
</html>
Eser Yukarıdaki kod, ama ben myscript.php gitmek için linki tıkladığınızda:
<?php
echo $_SESSION['count'];
?>
I get this error: Undefined variable: _SESSION in /home/ubuntu/public_html/myscript.php on line 2