Thank you Simon, I have been in FL hoping for a shuttle launch, no go.  I
realized the zend_registry  was not what I was looking for.  

 

I am getting my userid in the bootstrap but the view object property I
assign it to isn't holding it when I request it in the _login.phtml file.
Right now I pulled the auth_session into my view script and get the userid,
surely not want I really want in my view script.

 

I believe there are two requests happening, not sure why yet, so maybe the
second request is clearing the session data.  However, if that were true I
wouldn't be able to pull the auth_session params into the login file.

 

 

 

From: Simon Walter [via Zend Framework Community]
[mailto:[email protected]] 
Sent: Wednesday, April 27, 2011 7:59 PM
To: MTTrading
Subject: Re: Zend_Registry not staying set?

 

On 27/04/2011 23:17, MTTrading wrote: 
> Simon, I was using the Registry purpose.  I need to retrieve the Zend_Auth

> Session identity in my bootstrap to get the persistant login information. 
> I'm still have trouble but I'll work it out. 

If you are using Zend_Auth_Storage_Session you should be able to do
something 
similar to this in your Bootstrap.php file: 

     $authstorage = new Zend_Auth_Storage_Session(); 
     $authdata = $authstorage->read(); 
     $userid = $authdata->id; 

The Zend_Auth_Adapter_DbTable and it's getResultRowObject method are great
for handling user/authentication records held in a database:
http://framework.zend.com/manual/en/zend.auth.adapter.dbtable.html



-- 
List: [hidden email] 
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email] 





  _____  

If you reply to this email, your message will be added to the discussion
below:

http://zend-framework-community.634137.n4.nabble.com/Zend-Registry-not-stayi
ng-set-tp3476100p3479935.html 

To unsubscribe from Zend_Registry not staying set?, click here
<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.j
tp?macro=unsubscribe_by_code&node=3476100&code=amVmZkB5YXJyaW5ndG9uLmJpenwzN
Dc2MTAwfDE0MjQxNjcyOQ==> . 



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Registry-not-staying-set-tp3476100p3491278.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to