Advertisement
Null_Cat

removeCookie.php

Nov 21st, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. /* An open-source example of using the Pastebin API in PHP and HTML5.
  3. This is used to remove the cookie associated with the UserId.
  4. This will be connected to other PHP files, listed below when they are posted:
  5.  Pastebin.php: https://pastebin.com/wyz1MD8B
  6.  formUserId.php: https://pastebin.com/Y0ZAtddd
  7.  Testing.php: https://pastebin.com/iZUEDFfX
  8. */
  9.  
  10. setcookie("userid","",time() - 3600);
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14.   <head>
  15.   <meta http-equiv="refresh" content="0; url=/Pastebin.php" />
  16.   </head>
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement