-, cookie/session . , cookie, . , Google. PHP, cookie 3 . , , HTML, PHP, cookie 2 . :
<html>
<head></head>
<body>
<p>Please wait.....</p>
<img src="http://domain2.com/setcookie.php?theme=whateveryourthemehere" />
<img src="http://domain3.com/setcookie.php?theme=whateveryourthemehere" />
</body>
</html>
img , , . onload body. , cookie 2. Onload Callback:
<head>
<script>
function loadComplete(){
window.location="http://domain1.com";
}
</script>
</head>
<body onload="loadComplete()">
cookie , PHP (setcookie.php
):
<?php
if(isset($_GET['theme'])){
setcookie("theme", $_GET['theme'], time()+3600);
}
?>
cookie :) - , cookie:)
, tweek . , ,
,