note 107791 added to features.sessions

From: Date: Mon, 05 Mar 2012 07:00:27 +0000
Subject: note 107791 added to features.sessions
Groups: php.notes 
Request: Send a blank email to php-notes+get-186495@lists.php.net to get a copy of this message
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']; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 84.228.27.105 ---- Manual Page -- http://www.php.net/manual/en/features.sessions.php Edit -- https://master.php.net/note/edit/107791 Del: integrated -- https://master.php.net/note/delete/107791/integrated Del: useless -- https://master.php.net/note/delete/107791/useless Del: bad code -- https://master.php.net/note/delete/107791/bad+code Del: spam -- https://master.php.net/note/delete/107791/spam Del: non-english -- https://master.php.net/note/delete/107791/non-english Del: in docs -- https://master.php.net/note/delete/107791/in+docs Del: other reasons-- https://master.php.net/note/delete/107791 Reject -- https://master.php.net/note/reject/107791 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186495) next »