You are here: Re: [PHP] Same sessions / different domains « PHP « IT news, forums, messages
Re: [PHP] Same sessions / different domains

Posted by Chris Boget on 05/12/05 16:37

> I need to access a website (written in php) using two different
> domains (www.foo.com and www.bar.com). I must see the same content.
> Since the site uses session and cookie variables I was wondering if
> (and how) it's possible to create a session id that is valid for the
> domains I'll be using...

One possibility (that will require significant security considerations) is
to store all the session data within your datastore and use the session
id as the key to retrieve that data. As long as session id gets passed
as part of the GET to each page (something you can do both manually
and by enabling 'trans_sid' (I think that's what it's called though I might
be wrong)) then it shouldn't be much of a hardship to allow what you
are asking.

thnx,
Chris

 

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

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