Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- setcookie('unsafe', 'true');
- setcookie('safe', 'true', 0, '', '', '', TRUE);
- if ($_COOKIE['unsafe'])
- echo 'unsafe<br>';
- if ($_COOKIE['safe'])
- echo 'safe<br>';
- ?>
- <script>
- if (/ safe/.test(document.cookie))
- document.write('FAIL');
- else
- document.write('PASS');
- </script>
Add Comment
Please, Sign In to add comment