Welcome Guest, Not a member yet? Register   Sign In
Registering article "reads"
#6

[eluser]uptime[/eluser]
It sounds pretty easy to accomplish...

if ( ! COOKIE EXISTS )
{
// TODO - Make sure the browser supports cookie before increasing the counter;
INCREASE READ COUNTER;
SET COOKIE;
}

There are two things you would need to know:
1. It's very easy to delete the cookie...
2. If the cookie doesn't exists, make sure the browser supports cookies so we don't increase the counter for browsers that simply don't even support cookies (and make us think like they were never counted).


Messages In This Thread
Registering article "reads" - by El Forum - 11-25-2008, 07:20 AM
Registering article "reads" - by El Forum - 11-25-2008, 07:24 AM
Registering article "reads" - by El Forum - 11-25-2008, 07:32 AM
Registering article "reads" - by El Forum - 11-25-2008, 08:50 AM
Registering article "reads" - by El Forum - 11-25-2008, 08:58 AM
Registering article "reads" - by El Forum - 11-25-2008, 09:07 AM
Registering article "reads" - by El Forum - 11-25-2008, 09:25 AM
Registering article "reads" - by El Forum - 11-25-2008, 09:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB