note 107791 deleted from features.sessions by googleguy

From: Date: Fri, 28 Sep 2012 09:36:20 +0000
Subject: note 107791 deleted from features.sessions by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191060@lists.php.net to get a copy of this message
Note Submitter: idandaniels at gmail dot com ---- How to start a session and track it by Pageviews, in this example, if there arent any pageviews, we will get 1. <?php session_start(); if(isset($_SESSION['views'])) { $_SESSION['views']=$_SESSION['views']+1; } else { $_SESSION['views']=1; echo "Views=". $_SESSION['views']; } ?>

« previous php.notes (#191060) next »