Advertisement
enochmh2

1hr cookie

Dec 19th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. $_POST['username'] = stripslashes($_POST['username']);
  2. $hour = time() + 3600;
  3. setcookie(ID_my_site, $_POST['username'], $hour);
  4. setcookie(Key_my_site, $_POST['pass'], $hour);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement