CookieCheck

CookieCheck is a basic PHP script for checking whether a visitor has cookies enabled or not.
Download

CookieCheck Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Jath Pala
  • Publisher web site:
  • http://code.google.com/p/cookiecheck/

CookieCheck Tags


CookieCheck Description

CookieCheck is a basic PHP script for checking whether a visitor has cookies enabled or not. CookieCheck is a basic PHP script for checking whether a visitor has cookies enabled or not. Its design makes it simple to include into an existing script: just include the source file and call the check function.The script preserves the values of any GET or POST information sent to your script, so it does not require any major modifications to your original script.Usage InstructionsCookieCheck code is stored in the file cookiecheck.php. It consists of the public function cc_cookie_cutter() and a handful of private helper functions. There are a handful of configuration options that can be manipulated directly in the file by modifying the define(...) statements marked in the source code.To use CookieCheck, simply include it into your existing script and then run the cc_cookie_cutter() function:...include_once(cookiecheck.php);if (cc_cookie_cutter() == FALSE) { // Cookies are disabled echo 'Sorry, you do not have cookies enabled. Please enable them and reload this page'; exit();}// Execution only reaches this line if cookies are enabled...Note that this script sends headers, and so the cc_cookie_cutter() function should be called before any output (including whitespace) has been sent to the browser. This may necessitate the use of PHP's output buffering functions.What's New in This Release:· This release includes some minor bug-fixes and enhancements. It also rolls in the v1.0 security-fix-1 patch which fixed a potentially serious security vulnerability with the default session save path.


CookieCheck Related Software