
Yoni Lamri - 2015-05-05 08:41:52
I don't like basic session handlier for readOnly data, so i really like to store session data one time in a configuration class with static attribute called via a singleton pattern by an ajax controller.
$_SESSION['user'] become CONF::getInstance()->getSessionData('user').
I can also use this to store objects.
ex: CONF::getInstance()->getSessionData('user')->setName('xxx')->update()...