RE: [Phplib-users] Passing session details
Brought to you by:
nhruby,
richardarcher
|
From: Layne W. <la...@if...> - 2002-04-04 08:12:11
|
> I have a series of three sites with separate domain names > which I would like to share shopping cart data. I don't > have access to DNS or apache configuration for these > domains, but they can all access the same mysql database. > > I'm using phplib with the php4 sessions mods. > > I'm thinking that the best thing to do would be to patch > template.inc so that whenever it encounters a link to a URL > from a predefined list (my three domains) it automatically > adds a session id string. The linked to site could then > check for that string and set up its own session (with a > separate cookie) appropriately. > > I'm a bit stuck for where to start with patching (or extending) > template.inc, if indeed that is the right way to do things. I > think I'll only ever be linking to the index page of the other > sites. Does anyone have any pointers? Easier than modifying template.inc would be to write a function that takes the final output from Template and does a few regexs on it to catch all the urls. Layne Weathers Ifworld Inc. |