Reply to keeping session data across two domains

Your name:

Reply:


Posted by laredotornado@zipmail.com on 09/24/07 19:58

Hi,

I'm using PHP 4.4.4. I have two domains -- www.mydomain1.com and
www.mydomain2.com. Both point to the same IP address. I have two
pages on that IP -- first.php

<?php
session_start();
$_SESSION['test'] = "hello";
?>

and second.php

<?php
session_start();
print $_SESSION['test'];
?>

What I would like is when I first visit http://www.mydomain1.com/first.php
and then visit http://www.mydomain2.com/second.php to have the word
"hello" printed. Does anyone know how to adjust the above scripts or
my environment to make this possible?

Thanks, - Dave

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация