Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 387515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:40:51+00:00 2026-05-12T15:40:51+00:00

Hi: I am using the latest version of Zend Framework (1.9.3PL1). I set the

  • 0

Hi: I am using the latest version of Zend Framework (1.9.3PL1). I set the following in my .ini

; Bootstrap session resources
resources.session.save_path = APPLICATION_PATH "/../data/sessions"
resources.session.use_only_cookies = true
resources.session.remember_me_seconds = 864000

Next I want to initialize my session in my bootstrapper:

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initSession()
    {
        // What goes here!?
    }
}

My question is, what goes in the initSession function? What should it return, if anything?

Furthermore, if i just start a session in there, it does not recognize the .ini configuration (e.g., the save_path is unchanged). However, if you move the start to a controller, the .ini configuration is recognized.

EDIT: A possible solution is:

protected function _initSession()
{
    // Based on http://framework.zend.com/issues/browse/ZF-6651
    $session = $this->getPluginResource('session'); 
    $session->init(); 
    Zend_Session::start();
}
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:40:51+00:00Added an answer on May 12, 2026 at 3:40 pm

    If you use the resources.session.*-options in your application configuration you must not have a _initSession() method in your bootstrap as these method will override the execution of the plugin resource session (Zend_Application_Resource_Session). The sole exitance of the resources.session.*-options in the configuration file will make sure that the session will be initialized according to your options.

    Please read Zend_Application, Theory of Operation for a detailed discussion about the so-called resource methods and the resource plugins.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using wordpress latest version. Currently my blog is set to custom permalink
I'm using derived tables (latest version of MySQL) to get counts and data from
I am using the latest version of Twitter Bootstrap on a project. I have
I am using the latest version of GlassFish. I want to set the Access-Control-Allow-Origin
I am using the latest version of inno that does the following during setup:
i'm using latest svn version (1.6) of zfdebug with zend 1.11.4 and trying to
I'm using the latest version of Bootstrap to style a site and I have
I am using the latest version of web.py. I am trying to print data
Using the latest version of Resharper (4.5.x) with VS2008. Every now and then (pretty
I'm using the latest version of the jquery plugin DataTables and I tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.