<?php session_start();
($_SESSION['count']) ? $_SESSION['count']++ : $_SESSION['count'] = 1;
?>
<html>
<head>
<title>Session running</title>
</head>
<body>
<a href="session_start.php?<?php echo( SID ); ?>">Page précédente</a>
<hr>
PHPSESSID = <?php echo session_id(); ?>
<br>
Vous avez été ici <?php echo( $_SESSION['count'] ); ?> fois
</body>
</html>
|
<?php session_start();
($_SESSION['count']) ? $_SESSION['count']++ : $_SESSION['count'] = 1;
?>
<html>
<head>
<title>Session running</title>
</head>
<body>
<a href="session_start.php?<?php echo( SID ); ?>">Page précédente</a>
<hr>
PHPSESSID = <?php echo session_id(); ?>
<br>
Vous avez été ici <?php echo( $_SESSION['count'] ); ?> fois
</body>
</html>