Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

101
Views
XMLHttpRequest to another subdomain with cookie persistence?

I am using XMLHttpRequest to submit data from a form on one subdomain to another. The code below is an example. However when doing so the PHP code in the page being requested notices that no cookie was set even if multiple requests were made. The PHP code thus needs to create a new cookie for each request. How is is possible for the cookie to persist in the target subdomain if multiple requests are made?

It will be difficult for me to change the cookie/session settings from the calling subdomain.

var url = "https://www.example.com/page.php?param=value"
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", url, false ); 
xmlHttp.send( null );
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!