I've used this Drupal module for doing a shared-sign on between several
websites on several domains (you sign into one and you are signed into
all).
I'm no expert on how this module does all of its trickery, all sites need
to share the sessions and users tables in the database. Have a read of the
source code and it might be of use to you.
http://drupal.org/project/sso


>
> On Sun, 11 Oct 2009 08:13:50 Michael Adams wrote:
>
>> Came this utterance formulated by Michael to my mailbox:
>> > Does anyone have any code / demonstrations showing how this is
>> > achieved?
>
>> Think like an advertising cookie. There is a little bit of (usually
>> Javascript) code downloaded from the master advertising server on to
>> each sites page which updates the cookie, and reports browser info back
>> to the server.
>>
>> You could visit a doubleclick site then read the client side Javascript
>> they use (if it is open source). You have to come up with your own
>> backend on the master site of course, but that just requires a method
>> for filing stats.
>
> It's simple enough to pull a 1px GIF of something from a different URL to
> the
> page being accessed, and this will use the same cookie everytime.
>
> However I need a PHP cookie ID variable that is available to PHP scripting
> across different sites; and I am trying to get my head around how this can
> be
> achieved.
>
> >
>



--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to