To txmedic03, I have been scratching my head for about a week trying to come up with a solution to limiting the number of logins a user can have, and this little forum topic did the trick. Your examples worked great. I already had an authentication for logging in I just added the sessions table and the checks by adding the first part of your code at the top of each page. I use PEAR so I had to make adjustments to the code for my queries but all in all it was pretty simple. It works great! Thanks for your contributions, you saved me a lot of time!