Session Counter

You have visited this page:

1

time

Visit Again Reset Counter

Session Information

Session ID: ecb5499869b4471e7a6b9e26c5e1f9e5
First Visit: 2026-02-04 02:58:53
Session Name: PHPSESSID

Try These Experiments

The Code

<?php
session_start();

// Initialize if not set
if (!isset($_SESSION['count'])) {
    $_SESSION['count'] = 0;
}

// Increment
$_SESSION['count']++;

echo "Visit count: " . $_SESSION['count'];
?>

Back to Module | Next: Login Flow