Session Counter

You have visited this page:

1

time

Visit Again Reset Counter

Session Information

Session ID: fe4f77c661d4a4bc3ac376598581f3c5
First Visit: 2026-06-27 23:28:07
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