Re: [PHP] Not counting my own page visits

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.