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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:17:11+00:00 2026-05-11T06:17:11+00:00

I have a website that consists of 2 applications: Front end application Backend application

  • 0

I have a website that consists of 2 applications:

  1. Front end application
  2. Backend application

The front end has the www domain, whereas the backend has the job subdomain. For example, my front end application has the domain www.example.com/*, whereas my backend as the job.example.com/*. My front end application can locate on one server, whereas the back end can locate on another server. Or they are both stored on the same server.

The question now is whether the session variables I stored in the super global _Session ( PHP) can work across different sub domain. If I set _Sesssion['SessionID'] in www.example.com/*, can I retrieve the same _Sesssion[‘SessionID’] from job.example.com/*? Do I need to do special configuration to work?

  • 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. 2026-05-11T06:17:12+00:00Added an answer on May 11, 2026 at 6:17 am

    For using the same sessions on multiple domains/servers, you have to take care of two aspects:

    • where the session data is stored so that both domains/servers can access it, and
    • how the session identifier is carried along both domains/servers so that.

    Storage
    For different servers you could write your own session save handler that both servers can use. This could for example be a database that both have access to.

    Session ID sharing
    If you want to share a session ID for multiple domains (might be on the same server or different) and want to use cookies to transport the session ID, you have to modify the session ID cookie settings so that the cookie is valid for both domains. But this is only possible if both domains share the same higher level domain. For www.example.com and jobs.example.com that share example.com, the $domain parameter for session_set_cookie_params() has to be set to .example.com.

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

Sidebar

Related Questions

I have a web application that consists of Website and REST API. Should I
I have a website that consists mainly of a single Silverlight application. The website
I have added an MVC3 web application to an existing website that consists of
I have a menu section on a website that consists of 2 rows with
So basically I have website that has names of cities that can be checked
I have a website that has highly granulised access and hence requires many web.config
I'm running a fairly new website that heavily consists user generated content. I have
I have a website that consists of one parent page. Using the lightbox-style jQuery
I have a website that consists of the following areas, Home About Us Project
I have designed a website that consists of the body, a container to hold

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.