Hello, I would like to password protect a site as well as save a small amount of non-personal info about each user. This info would keep users from having to repetitively fill out information to be stored in different db tables.
My original inclination would be just to setup a .htaccess file (my server sets PHP_AUTH_USER automatically when using this type of authentication), check the user name against a database table, and grab the info I need.
I am trying to find out if there are any advantages in my situation to use cookies or session variables, or to manually set up my php scripts to authenticate users.
Also, I would like to timestamp a users last login, but they might not always start at the main page. Is there a way that I can make sure a script runs real quick only after authentication, rather than have it run for every page they go to?
Thanks for any help!
Jason