2010年6月17日星期四

Re: [fw-auth] Re: problem with session

Zend_Auth internally uses Zend_Session_Namespace (by default), so it should start the session automatically when you first try to work with Zend_Auth. You should not need to call Zend_Session::start() manually. You only need to bootstrap it (i.e. configure it). Also, you should avoid accessing $_SESSION directly -- it's best to use Zend_Session_Namespace so that it will lazy-start the session.

--
Hector


On Thu, Jun 17, 2010 at 4:10 PM, greg606 <greg606@gmail.com> wrote:

Hector,
I just followed your suggestions to remove the initSession method and use
config.ini
But this does nothing ;)

My goal is to instantiate the session before it's used by Zend_Aut (it's in
view helper)  or any other component.
I thought I could just put it in bootstrap ;)
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/problem-with-session-tp2251761p2259573.html
Sent from the Zend Auth mailing list archive at Nabble.com.


没有评论: