Tuesday, April 5, 2011

Zend Session Namespace

I'm having a bit of a collision with the naming of the Zend_Session_Namespace parameter.

What is the convention for the namespace other than "default"? Lets say i want to use it in the frontcontroller, should i name it Zend_Session_Namespace('Zend_Controller'); because the Zend_Auth convention is Zend_Session_Namespace('Zend_Auth');

From stackoverflow
  • You should namespace it in a way you can remember it and where it makes sense. If you are storing e.g. user options for a guest, maybe his name and email address for comments, you should probably name the namespace something like "guest-data". There is no real convention for that.

0 comments:

Post a Comment