Skip to content

Instantly share code, notes, and snippets.

@ivmm
Created March 17, 2019 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivmm/192155b3f172eb22601c66f8bb6fe547 to your computer and use it in GitHub Desktop.
Save ivmm/192155b3f172eb22601c66f8bb6fe547 to your computer and use it in GitHub Desktop.
redistest.php
<?php
//simple counter to test sessions. should increment on each page reload.
session_start();
$count = isset($_SESSION['count']) ? $_SESSION['count'] : 1;
echo $count;
$_SESSION['count'] = ++$count;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment