LuRKeR Posted November 19, 2010 Share Posted November 19, 2010 Having some issues, hopefully you guys can identify a solution for me. There are 7 Servers involved in this situation - Each with its own website. Server 1 houses a page with content that is shared by the other 6 servers. I need to change an image (logo) at the top of Server 1 page based upon which server they originally came from. For example they are traveling from server 4, when they arrive at server 1 they see server 1 content however the image at the top will corrospond with correct brand in this example server 4's logo. Cookies have not been a reliable solution considering they are usually disabled. Please Help Guys, Any feedback is Fantastic! Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted November 19, 2010 Share Posted November 19, 2010 This is a little to vague. If you can give a more detailed step-by-step it would help. Quote Link to comment Share on other sites More sharing options...
LuRKeR Posted November 19, 2010 Author Share Posted November 19, 2010 Alright I will try to be more specific I have 7 Servers (7 Websites) Website 1 on Server 1 has a page with Content Website 2 - 7 on Server 2 -7 are Linking to Website 1 on Server 1 Website 1 on Server 1 Needs to have the Logo from the Website it came from at the top. For Example Website 1 has healthy food content Website 2 is Burger King website Website 3 is McDonalds website .... So on and So forth When someone traveling from Website 2 (Burger King) to Website 1 (healthy Food Content) it needs to display the Burger King Logo in addition to the healthy food content Example 2 When someone traveling from Website 3 to Website 1 it needs to display the McDonalds Logo in addition to the healthy food content Quote Link to comment Share on other sites More sharing options...
Splitti Posted November 19, 2010 Share Posted November 19, 2010 Hmm you said you have tyed Cookies, what about sessions ?? Quote Link to comment Share on other sites More sharing options...
LuRKeR Posted November 19, 2010 Author Share Posted November 19, 2010 Not sure how to pass sessions across multiple servers in this situation, excuse my ignorance, could you explain your thoughts? Quote Link to comment Share on other sites More sharing options...
Splitti Posted November 19, 2010 Share Posted November 19, 2010 Well havent thought it trough proberly, you right not sure if you can use sessions across diffendt servers. Maybe log there ip-adress and last visit into a DB and through there see where the user have been last and out from that show the corect logo ?! Quote Link to comment Share on other sites More sharing options...
LuRKeR Posted November 19, 2010 Author Share Posted November 19, 2010 I do not have database access to any of the server - Company Restiction However you mentioned history - is there any way to pass information through the url ? For Instance A user clicks on the link on one of the pages, it adds information to the URL that the landing page could reconginze and execute the IF statement? IF this is possible how would I got about doing so? Quote Link to comment Share on other sites More sharing options...
Splitti Posted November 19, 2010 Share Posted November 19, 2010 well you can in a Link write: <a href="http://www.yoursite.com/index.php?target=logo1">Link name</a> then the url will show http://www.yoursite.com/index.php?target=logo1 and that you can extract with a $_GET['target']; and if you: echo $_GET['target']; it will show "logo1" Quote Link to comment Share on other sites More sharing options...
LuRKeR Posted November 19, 2010 Author Share Posted November 19, 2010 Only issue with that is I have to specifically call that link from each page. For Example Website 2 <a href="link.com/target=logo1">etc. Website 3 <a href="link.com/target=logo2">etc. SO for the "Related Links" document; I could have used the same related links document for each website but now I would have to include 6 different files containing differnet links; This would making updates a hassle My Goal is to elimante 1000 updates. Don't Give up on me - Thoughts? Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted November 19, 2010 Share Posted November 19, 2010 There are lots of variables that are defined on each host that you can use, so if you had this link in a file and included it on sites 2-6: echo '<a href="http://website1.com?ref=' . $_SERVER['HTTP_HOST'] . '">'; Then it would look like this on website2: http://website1.com?referrer=website2.com So on website1 you would use $_GET['referrer'] to know where it came from. Quote Link to comment Share on other sites More sharing options...
LuRKeR Posted November 19, 2010 Author Share Posted November 19, 2010 Brilliant - I like it Will Try it out and see what comes from it, Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.