Thread: Pro PHP Chap 15
View Single Post
  #1 (permalink)  
Old March 17th, 2006, 02:31 PM
kgmcmillen kgmcmillen is offline
Registered User
 
Join Date: Mar 2006
Location: Las Vegas, NV, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pro PHP Chap 15

I don't understand why the authors of Professional PHP5 elected to skip the simpler session data handler services of PHP and build this more complex object based solution.

This makes it imperative to use $objSession->element = 'value', instead of the more usual $_SESSION['element'] = 'value'; A significant issue when trying to retro-fit an existing series of scripts with a new session handler (as we are moving from a single server to a cluster with load-balancing).

Why did they think this method was better? Is there an inherent problem with trying to implement the simpler solution?

I'm not suggesting the solution is wrong, but I can't see why this one is better. I hope this question is clear. Thanks for any response.

Reply With Quote