Thread: Errata
View Single Post
Old September 6th, 2005, 06:55 AM
amnesiacx amnesiacx is offline
Registered User
Join Date: Sep 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Re CH15 Sessions, it's a nice idea, but the code is just crap, even after the fixes suggested here. The table "session_variable" is never populated, and each time I refresh the page a new user session is created (ie the first line of usersessiontest.php always comes up with "Logged in?... No" even though I comment out the logout call).

You would think someone publishing and releasing code in a book titled "Professional" anything, would at least provide working and tested code that would be close to production ready as possible. If the authors read this maybe they can spare some time from counting their money from the sales of the book and provide a professional working version of the usersession class that would be a truer reflection of the book's intentions.