Sessions - Chap 15
Is this really the way commercial and bigger sites handle sessions? Does anyone have any experience in saving session info to a database?
Also, there is a problem with the logic for __set in usersession.phpm. The __set function does not check for the existence of the session variable before inserting into the database table. Every time a variable is set, a duplicate record is inserted into the database table. For example, using the test PHP script for TESTVAR = 'foo', I refreshed the page several times and the session_variable table had several records for foo under this session.
|