I'm writing a news script for my site, and I need to know what the best way is to authenticate a user. The user names and encrypted passwords are stored in a MySQL database, along with some other user info. This information is only used for the news posters, so there will probably be no more than ten users in the database. I would like the user to log in once, and then set a cookie that will keep him logged in for a month or so. What's the easiest way for me to do this?