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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:49:35+00:00 2026-05-27T00:49:35+00:00

Shall I create a separate Zend Application for the user backend of a web

  • 0

Shall I create a separate Zend Application for the user backend of a web application?

My main concern is that I have to have a separate Zend_Auth on both the public website (for clients to login) and for employees to manage the site.

Since it appears to me that I can’t use multiple Zend_Auth instances in one application this would be the only solution.

The next concern would be that the two Zend_Auth sessions will collide since they run on the same webspace?

Cheers

  • 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-05-27T00:49:35+00:00Added an answer on May 27, 2026 at 12:49 am

    Actually, Benjamin Cremer’s solution won’t work, because Zend_Auth_Admin extends a Singleton implementation, so its getInstance() would yield a Zend_Auth instance, not a Zend_Auth_Admin one.

    I myself was confronted with this situation, and seeing that the ZF people (at least in ZF1) see authetication as a single entry-point in an application (they could’ve made it so that Zend_Auth could contain multiple instances, using LSB in php etc.), made a minor modification to Benjamin Cremer’s code – you must also override the getInstance():

    <?php
    
    class AdminAuth extends Zend_Auth
    {
        /**
         * @var AdminAuth
         */
        static protected $_adminInstance;
    
        /**
         * @return Zend_Auth_Storage_Interface
         */
        public function getStorage()
        {
            if (null === $this->_storage) {
                $this->setStorage(new Zend_Auth_Storage_Session('Zend_Auth_Admin'));
            }
            return $this->_storage;
        }
    
        /**
         * Singleton pattern implementation.
         *
         * @return AdminAuth
         */
        public static function getInstance()
        {
            if (null === self::$_adminInstance) {
                self::$_adminInstance = new self();
            }
            return self::$_adminInstance;
        }    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying create a small web application that allows a user to login
Given that I have a shell application and a couple of separate module projects
Trying to create a small monitor application that displays current internet usage as percentage
I need to create an application that does the following: The application is going
Problem background: I have a Qt/QML Symbian application targeting Qt 4.7.4, that requires a
I have an ASP.NET MVC web application which is hosted by an external provider,
My application using Oracle 11g as backend. We have a multiple BLOB Columns in
I want to create a ColumnSeries Bar Chart in WPF using C#. I shall
I am attempting to create a small application to collect data received from an
I'm trying to create a small Javascript framework that I can use in my

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.