Session Counter

You have visited this page:

1

time

Visit Again Reset Counter

Session Information

Session ID: 313349ea8c8a5c69d5392e1479fff8e9
First Visit: 2026-02-04 04:30:40
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