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

  • Home
  • SEARCH
  • 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 7688751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:59:45+00:00 2026-05-31T19:59:45+00:00

I have 2 applications. App1 is some old selfmade php project, not using Zend.

  • 0

I have 2 applications. App1 is some old selfmade php project, not using Zend. And App2 is a little Zend application.

http://test.pmueller.dev.xiag.ch/ This is just for tests. In this case, it represents App1.

If you click show at newsletter 313, you will logged in and see the newsletter. This is a normal cross domain post call. Login was made in the background. Copy paste that url.

Now, delete the cookie. If you reload the tab, you should get an error because you aren’t logged in anymore.

What fails is the following:

You should be logged in, when clicking on the login button. This means, you first click the button. Then, open a new tab an go to the newsletter again you just were.

As you see, the login via ajax doesn’t work. Why? I really couldn’t figure out why it does set my cookie with a normal post but it doesn’t when doing an ajax call.

  • 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-31T19:59:46+00:00Added an answer on May 31, 2026 at 7:59 pm

    Make both application’s session handler user the same domain. So if you have app1.foo.bar.com and app2.foo.bar.com you should be doing something like this in both of your apps:

    Zend_Session::setOptions(array(
        'cookie_domain' => '.foo.bar.com'
    ));
    

    One place for this code is the Bootstrap, but anywhere before you call Zend_Auth::getInstance()->hasIdentity() or start the session should be ok.

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

Sidebar

Related Questions

I have a Django project that contains two applications App1 and App2 I have
I have two PHP applications on the same Apache server. At some point, application
I have two applications under tomcat/webapps folder. tomcat/webapps/App1 tomcat/webapps/App2 Both applications share the same
I have application 1 and application 2. App2 needs to verify that App1 is
there is a user control on my Application.(App1) now I have made some changes
Currently I have 2 web applications app1 and app2 running on Tomcat 6: app1
If I have two applications running simultaneously , App1.exe and App2.exe , I want
Suppose we have 3 apps - appMain , app1 and app2 . Applications 1
I have two rails applications App1 and App2 both running on separate URLs but
How I can set some PHP parameters (not Apache parameters) per application without changing

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.