idle thoughts....a multi-website session manager...is it possible?
-
I know the first reaction is no, but I was musing over this and wanted to bounce the idea off of you good people. First, why would anyone do this? Well from my work environment, I work for a business that has multiple websites under different domains. For example I will use www.site1.com and www.site2.com. The sites are hosted on seperate servers. Both of these sites have their own product lines that they sell and a third party is hired to do data entry into both sites. All back-office web apps are designed in-house and the third party company can log into each sites product entry page to enter new items and update prices. But doing so requires a seperate login at each site. Now reading up on moving php session data into a mysql database got me thinking a little additional work may permit multi-site logins. As I understand it a session is tied to a domain, which must be sent in each request for a given browser. In the datbase-based session storage this is stored, along with some other data. If a custom write and read is designed, one could also create a record for each additional domain that would want to share a login using the same session info with the domain info changed for each site. Doing this of course means the various sites would need access to the same database, but it sounds like it would work to me. I am posting this so maybe those of you that have more experience with custom session solutions in PHP can poke holes in this idea before I start to work on it. Chris J.