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 7998783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:18:46+00:00 2026-06-04T15:18:46+00:00

I hope you guys can help me , In my Zend application I’m setting

  • 0

I hope you guys can help me ,

In my Zend application I’m setting the Zend_Auth session files to be saved in a specific folder because I am using a shared hosting. Apparently I have got everything right but the problem is that the sessions are not being stored in the folder I want.

In the application.ini I have:

resources.session.save_path = APPLICATION_PATH "/../data/session/"
resources.session.use_only_cookies = true

In the bootstrap I have:

protected function _initSessions() 
{
    $this->bootstrap('session');
}

The authentication method

$adapter = $this->getAuthAdapter();
$adapter->setIdentity($userName)->setCredential($hPassword);

$auth = Zend_Auth::getInstance();
$result  = $auth->authenticate($adapter);
$user = $this->_userModel->getUserAuthData($userName);
$auth->getStorage()->write($user);

The application authenticates fine but the session files are still being saved in de /tmp folder instead of APPLICATION_PATH “/../data/session/”.

The folder /data/session has chmod 777.

What I am missing here?

  • 1 1 Answer
  • 0 Views
  • 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-06-04T15:18:49+00:00Added an answer on June 4, 2026 at 3:18 pm

    After Tim Fountain asked (in the question’s comments) if there was any other session related functionality happening in the bootstrap I decided to check what was happening before bootstrap and found this line in the public/index.php file.

    Zend_Session::start();
    

    It was just before $application->bootstrap()->run(). I Removed it and it worked.

    The problem: Zend_Session::start() was creating the session file without applying any configuration that was being set in the application.ini (because this runs during the bootstrap process).

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

Sidebar

Related Questions

I'm really confused so I hope you guys can help me. I know how
I've run in to a problem I hope you guys can help me with.
First time stackoverflow user but occasional lurker, hope you guys can help me out.
I hope some of you guys can help me with this problem.... I have
I hope you guys can help me with this one. So, I have a
I am stuck with a design problem that I hope you guys can help
Hope you guys can help me out. I have information coming into a serial
I hope you guys can help me, normally I don't ask for help, but
i have a problem so hope you guys can help! I have a string
Hi everybody I seem to be stuck and I hope you guys can help

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.