Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function logincookie($id, $passhash, $updatedb = 1, $expires = 0x7fffffff)
- {
- setcookie("uid", $id, $expires, "/");
- setcookie("pass", $passhash, $expires, "/");
- if ($updatedb)
- mysql_query("UPDATE users SET last_login = NOW() WHERE id = $id");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement