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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:52:53+00:00 2026-05-26T02:52:53+00:00

So I have this page on one domain that has a script-tag pointing on

  • 0

So I have this page on one domain that has a script-tag pointing on another domain and everytime I refresh the page, a new session_id is generated. This only happens on IE, all other browsers seems to work.

Here is an exemple with code (JS and PHP)

http://domain1.com/index.php :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://domain2.com/index.php"></script>
</head>
<body>
</body>
</html>

And on http://domain2.com/index.php :

<?php
    session_start();
    header("content-type: application/x-javascript");
    echo "alert('".session_id()."');";
?>

Open Chrome or Firefox in domain1.com/index.php and you should see an alert box with a session id. Everytime you refresh you always have the same session id.
In IE (I tried with 7, 8 and 9), the session id is always different.
The cookies doesn’t seem to be saved properly.

Thanks for any help.

  • 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-26T02:52:54+00:00Added an answer on May 26, 2026 at 2:52 am

    For documentation purposes, here’s the solution I found:

    I created a p3p file with the IBM P3P Policy editor (the p3p and CP file)
    Uploaded the files in the folder /w3c
    And added the following header in the file on the domain2.com P3P: CP=”content from the CP generated file”

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

Sidebar

Related Questions

This one is weird, I have a page that consists of a html table
I have a page with several iframes. One of this iframes has a page
I'm doing an asp.net application with one page. In this page, I have one
I have one master page which applies to all pages in this website. On
I have an Asp .net page like this simple one http://issamsoft.com/app2/page1.aspx and I want
This question is related to this one . I have a page table with
I have a .jsp that contains an IFrame with a page that has some
Okay, my dilemma is this. I have an admin page that I use to
I have a page with an iframe that has no source on page load
i have this page . login: fer password: m Note: after login you will

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.