SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. //simple counter to test sessions. should increment on each page reload.
  3. session_start();
  4. $count = isset($_SESSION['count']) ? $_SESSION['count'] : 1;
  5.  
  6. echo $count;
  7.  
  8. $_SESSION['count'] = ++$count;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top