[Phplib-users] Passing session details
Brought to you by:
nhruby,
richardarcher
|
From: James S. <li...@br...> - 2002-04-03 19:33:21
|
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? thanks. James. |