ZF2 - How are you supposed to access session vars in a session container?

Moksha

New Member
I create a container like so:\[code\]$frontend = new SessionContainer('frontend', null);\[/code\]I set a variable like so:\[code\]$frontend->offsetSet('foo',$bar);\[/code\]My question is, when you need to access this somewhere else, are you really supposed to instantiate a new SessionContainer with the same key everywhere you go and grab the var? Or, is the session data being passed around in another variable available in the controller or something?
 
Top