سؤال

I'm having a ZF application with two different modules 1.default and 2.admin and I'm setting some session values in default module however I'm not able to get the session value which i set in default module in admin module.Is there anyway to make session GLOBAL, I mean accessible to all modules in the application?

هل كانت مفيدة؟

المحلول

I solved it on my own

We cant get Zend_session_Namespace of one module in another ,rather we can get $_SESSION in both modules

So in the bootstrap

$session = new Zend_Session_Namespace('auth');
$session = $_SESSION;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top