Shared Sessions On One Account
Posted: Sun Aug 30, 2009 8:49 pm
Before I say a word, if this topic exists elsewhere feel free to call me an idiot for not finding it and point me towards it. I looked, but didn't find anything.
Would it be possible to share session data across multiple domains, when all the domains are hosted off one account? I've got a client who has one hosting account with 2 addon domains, so all the files are within their section of the server (which means, as far as I understand it, they all use the same temp folder for php sessions). I know that PHP can only access sessions for the domain its running from, but would there be any way to get this working? Basically the client has 2 different online stores which sell similar items, and one main site to do the checkout (they want two separate sites for ordering, but then the items can be shipped together when they complete their order). I've set up single site e-commerce easily enough, but this one is really getting to me.
So, when the user logs into their account on the main site, could I create 2 additional sessions for the other 2 sites? Or, simpler, could these sites read the session since it's within the same folder?
I really appreciate any insight!
Would it be possible to share session data across multiple domains, when all the domains are hosted off one account? I've got a client who has one hosting account with 2 addon domains, so all the files are within their section of the server (which means, as far as I understand it, they all use the same temp folder for php sessions). I know that PHP can only access sessions for the domain its running from, but would there be any way to get this working? Basically the client has 2 different online stores which sell similar items, and one main site to do the checkout (they want two separate sites for ordering, but then the items can be shipped together when they complete their order). I've set up single site e-commerce easily enough, but this one is really getting to me.
So, when the user logs into their account on the main site, could I create 2 additional sessions for the other 2 sites? Or, simpler, could these sites read the session since it's within the same folder?
I really appreciate any insight!