Sure, you could. It's the logging out thing that sucks. Most people, even when presented with a logout button, don't use it. They go to a diferent site or just close their browser. You'd need to record/update their login time everytime they hit a page, and run a cron job to logout people after x amount of time idle