Reply to Re: PHP Template

Your name:

Reply:


Posted by KevinM2k on 10/26/06 11:04

Michael Vilain wrote:
> In article <1161769951.874091.200460@e3g2000cwe.googlegroups.com>,
> "KevinM2k" <kevinm2k@yahoo.co.uk> wrote:
>
> > Erwin Moller wrote:
> > > KevinM2k wrote:
> > >
> > > > Hi,
> > > >
> > > > I am trying to have 1 template site and have an unlimited number of
> > > > websites
> > > > using this template site to call there own information.
> > > >
> > > > The sites are exactly the same except for the database, each of the
> > > > sites
> > > > also needs there own URL, for example one of these urls may be
> > > > www.example1.com and the other www.example2.com. These sites are
> > > > identical
> > > > apart from the database they call to, one will call to a database
> > > > called
> > > > example1 and the other example2. I want another site (for example
> > > > www.solution.com) to read what url has been entered and to pull in the
> > > > database for that site (either example1 or example2) and show that
> > > > information. I have tried using the CURL library without success (not
> > > > sure
> > > > how to use it fully) and have tried using frames but had loads of
> > > > problems
> > > > regarding losing session data. can anyone help?
> > >
> > > Hi,
> > >
> > > The reason you loose your sessiondata is simple: The sessionid is stored in
> > > a cookie together with the domain it belongs to.
> > > Every request to a certain domain send along the cookie, and the possible
> > > ppsessid, and so the server can see if it has a session belonging to that
> > > user.
> > > Imagine what happens if this was not implemented like this (as in early
> > > versions of Netscape): You have 2 windows open, one on
> > > www.wehackforfun.com, and one to your companies intranet. If both sites
> > > receive all cookies, the former one can easily 'steal your session' to your
> > > company's intranetsite, simply by reading the name and value of the
> > > cookie...
> > >
> > > If you have 2 different domains, they cannot share a session. (Well, they
> > > can, but that is less straightforward.)
> > >
> > > Bottomline, don't try to share sessions across different domains.
> > >
> > > If this is really a requirement, you can set this up only if you own both
> > > sites, and let them use a common session storageplace (database eg), AND
> > > let both sites explicitely send the sessionid around via GET, because the
> > > cookie will not work.
> > > I am not sure if that is wise, but it can be done.
> > >
> > >
> > > Regards,
> > > Erwin Moller
> > >
> > > >
> > > > Thanks
> > > > Kev
> >
> > Do you have any suggestions on any other way to do this then because I
> > am completely stuck for ideas.
> >
> > Thanks
>
> Uhm. The first fix was free kid. Now we gotta start charging you.
>
> If you can't figure this out, hire a consultant or buy a php book.
> There are lots out there. Browse the O'Reilley and Sitepoint sites.
>
> --
> DeeDee, don't press that button! DeeDee! NO! Dee...

I am posting on these groups to get this help, not to be told to read
books which aren't going to help in this situation anyway.

I have it so that if you manually set the site id it works, however i
need it to pick this id up depending on what domain you select.

K

[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

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