Re: Not counting my own page visits

From: Date: Mon, 04 Mar 2013 19:33:48 +0000
Subject: Re: Not counting my own page visits
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-320392@lists.php.net to get a copy of this message
On Mon, 2013-03-04 at 10:15 -0800, Angela Barone wrote: > On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: > > set a cookie with a long life and check for that, discounting visits when either are true > > Hi Ash, > > I don't know anything about cookies. It sounds complicated to me. Is there a simple way > to set one? > > Thanks, > Angela You can manually write a cookie on your machine, or use a special script that only you visit that contains a setcookie() call (it only need be set once). From there on, you can check the $_COOKIES super global for the presence of your cookie. To test, visit the site with a different browser (browsers won't share the cookies) and you'll see the visit logged. Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#320392) next »