Re: Not counting my own page visits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux