Advertisement
artur99

PHP EasyLock Remember Me & Logout Demo

May 30th, 2018
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2. // There has to be no space before the starting php tag.
  3. // In case you need a redirect, you need to do it in PHP,
  4. // with header Location or something that would not print any text on the page (or spaces/newlines).
  5.     include 'easy-lock.php';
  6.     lock("testpw", 2, [
  7.         'remember_me' => true
  8.     ]);
  9. ?>
  10.  
  11. <h2>Your actual Page.</h2>
  12. <p>
  13.     This can be seen after writing the password.
  14.     For logging out, you can use this link:
  15.     <a href="page.php?easylock=logout">page.php?easylock=logout</a>
  16. </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement