Login Script with timer


What I’m looking for is a simple script that will allow a user to login and logout of a page, the thing thats most important is that I need the script to email me back the time the user logged in and the time they logged out again.

Anyone know if anything like this exists? Or how easy it would be to code?