I am playing with creating a user login system in php.
I am studying this article ( http://www.evolt.org/node/60384 ) as a way to get closer to this.
In the above article, the author uses a combination of $ _SESSION and its own database table to store user information.
However...
I have also come across numerous articles that recommend using session_set_save_handler to configure php sessions to use the database natively. (I think this is a newer technique.)
I am wondering: if I plan to set up the "activeUsers" table in the database to record session data anyway, does it make sense to use session_set_save_handler? (It seems that if I use a database to store any session information, I could also do without file system sessions.)
Or is there any advantage to leaving php sessions on my file system by default and then checking user accounts on my user db table?
Thank you (in advance) for your help.
source
share