Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Check if cookies are enabled
SUBMITTED BY:
henry1874w
DATE:
June 21, 2017, 11:33 p.m.
FORMAT:
Text only
SIZE:
239 Bytes
Raw
Download
Tweet
HITS:
225
Go to comments
Report
<!DOCTYPE html>
<?php
setcookie("test_cookie", "test", time() + 3600, '/');
?>
<html>
<body>
<?php
if(count($_COOKIE) > 0) {
echo "Cookies are enabled.";
} else {
echo "Cookies are disabled.";
}
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus