can you tell me how to include the Zend_Session::start() in a bootstrap file of zf app?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the application resource – http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.session
All you need to do is provide a “session” section in your config file “resources” section.
At a minimum, I’d recommend setting a session name, eg
or if using Zend_Config_Xml
If you want to do some session stuff in your Bootstrap class, just make sure you bootstrap the session resource first to pick up your configuration options, eg