Skip to content

Instantly share code, notes, and snippets.

@hanafiah
Created March 29, 2018 04:12
Show Gist options
  • Save hanafiah/1cc0a835ada1ae45c71afa1386f0e6e1 to your computer and use it in GitHub Desktop.
Save hanafiah/1cc0a835ada1ae45c71afa1386f0e6e1 to your computer and use it in GitHub Desktop.
<?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo "count {$_SESSION['count']}";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment