![]() |
PHP guys .. how to detect nocookie traffic ?
the topic's name says it all .. I need to know who does have cookies enabled and whoe doesn't ..
|
You could log all the ip addreses daily, and then at the end of the day have them deleted. Each ip address, uniquely, would count as a hit. Then at the end of the day, tally up everything and delete that file via cron job :)
simple stuff. |
when someone comes to the page, set a cookie and try to read it back. If you can read it, then their cookies are enabled.
PHP Code:
|
|
Here's one i made earlier:
http://www.ip-sorter.com/php/cookie_test.php.txt remove the .txt extension to demo it. |
| All times are GMT -7. The time now is 09:08 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123