I'm creating a multilingual web site and after user logs in I need to create cookies across all domains (on same server):
example.com
example.de
example.it
I know for this solution - http://subinsb.com/set-same-cookie-on-different-domains (calling a .php file from inside img attribute) but is there any pure PHP solution ?
I'm trying to work out cURL solution but it doesn't work:
$url = "http://www.example.de/createcookie.php?value=hashvar";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_exec($curl);
After user login it needs to create cookie on current domain and then calls (via cURL) createcookie.php file that creates cookies on other domains.
Is something like this possible via cURL or some other PHP function like get_file_contents ?
All domains is placed on same server.