How do I protect my site from users that has not logged in? I store the user info in a mySQL database.
A very simple (but boring) way is to put a few lines of code in every page that checks if there exist a user, and if it's not, you don't let him in.
But is there a more 'professional' way of doing this? Where can I find more info?
/Erik