You are here: Re: Setting cookie for two domains. « PHP « IT news, forums, messages
Re: Setting cookie for two domains.

Posted by Al on 10/04/03 11:36

Shafiq Rehman wrote:
> Hi,
>
> How can I register a session or cookie for two domains. I want to maintain
> logged user's state when he goes from one domain to other domain.
>
> Example
> Suppose a user is logged in on domain1.com. A cookie is set and user is
> authenticated from database on the basis of that cookie. When he goes from
> domain1.com to domain2.com, I want he remains loggedin on domain2.com. I do
> not want any query string. Is it possible by playing with cookie or session
> settings?
>
> Please advise if anybody has faced such problem.
>
> Regards
> http://www.phpgurru.com
>


Why not simply save the session ID in the first site in your DB or a temp file. Then have the second site query for it
via ftp or for a file fopen.

 

Navigation:

[Reply to this 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

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