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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:56:01+00:00 2026-06-14T02:56:01+00:00

Possible Duplicate: Cross domain PHP Sessions I have an IIS6 / WIMP system. When

  • 0

Possible Duplicate:
Cross domain PHP Sessions

I have an IIS6 / WIMP system.

When a user visits a page on:

http://subdomain1.domain.com

then a page on:

http://subdomain2.domain.com

I need the session id to stay the same. I do not need to retain the session variables, just the session id. Each sub domain is setup as a separate site in IIS.

I would like to configure this through IIS, but if I have to do it through php that would work as well.

  • 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-14T02:56:03+00:00Added an answer on June 14, 2026 at 2:56 am

    You should change session.cookie_domain directive in your php.ini file, or you can use PHP ini_set function.

    You change it using ini_set function like this:

    ini_set('session.cookie_domain', '.domain.com');
    

    You should do this somewhere at bootstrap level.
    This should work. I had similar situation where I had to create session at http://www.domain.com, and then use that session on http://www.subdomain.domain.com. And it works great.

    Hope this helps!

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

Sidebar

Related Questions

Possible Duplicate: Cross-Domain Requests with jQuery $(function () { (function getFeed() { $ .get('http://feeds.bbci.co.uk/news/world/rss.xml')
Possible Duplicate: Ajax cross domain call I have Asp.Net Controller methods which return JSON
Possible Duplicate: JQuery ajax cross domain I need to load content from another websites
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: Ways to circumvent the same-origin policy Is it possible to enable cross-domain
Possible Duplicate: cross domain cookies I need a cookie to be available across multiple
Possible Duplicate: MySQL dynamic cross tab I have student_record table ------------------------------------------------------------------- student_id | semester
Possible Duplicate: Why is cross-domain Ajax a security concern? I'm having a huge issue
Possible Duplicate: is it possible to get cross domain SOAP request using jquery please
Possible Duplicate: How to change style of iframe content cross-domain? Hi everybody. Is it

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.