Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function logincookie($id, $passhash, $updatedb = 1, $expires = 0x7fffffff)
  2. {
  3.         setcookie("uid", $id, $expires, "/");
  4.         setcookie("pass", $passhash, $expires, "/");
  5.  
  6.   if ($updatedb)
  7.           mysql_query("UPDATE users SET last_login = NOW() WHERE id = $id");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement