note 103130 deleted from features.sessions by danbrown

From: Date: Mon, 28 Mar 2011 16:50:43 +0000
Subject: note 103130 deleted from features.sessions by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178269@lists.php.net to get a copy of this message
Note Submitter: Danafazeli at hotmail dot co dot uk ---- To start and record a session do: <?php session_start(); //starts the session if(isset($_SESSION['views'])) $_SESSION['views'] = $_SESSION['views']+1;//if the session is started and the page is visited, add a count else $_SESSION['views'] = 1;//else keep it as it is echo "Views=". $_SESSION['views'];//show the amount of page hits ?>

« previous php.notes (#178269) next »