I was bored and wrote one quick.
Save this as "login.php". You can add as much users as you want. Just use a higher number than the previous between the "[" and "]".
And this as "logout.php"
And this as userpage. "sarah.php" for example. Or whatever you used as username
Hope this helps!
Oh, one last thing. Make sure all files are in the same directory!