I am new to php (and web programming for that matter.) I am trying to decide what method of session handling would be most efficient, assuming a fairly large user base. By the way please feel free to suggest ant methods that may be better.
1) Add a session id and expiration time to a users record.
2) Create a separate session table with a session id an expiration time and a user id.
if user info is not required on a particular page can authenticate a session by querying just the session table for fast results
querying two tables if user data required, creation of new record for each session and forced to perform regular maintenance on session table.
3) create a separate session table and store all of the users info in there.
Well what do you think? Your feedback is appreciated.
Thanks
Don