Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8521731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:54:34+00:00 2026-06-11T06:54:34+00:00

I have an ecommerce system and a blog both working independently on two servers.

  • 0

I have an ecommerce system and a blog both working independently on two servers. The ecommerce server reverse proxies the blog

/blog

This is all working fine, however my question is what is the best way to attain the header webpage element from one server to the other, taking into consideration there are dynamic elements within the header, basket count and user name if logged in.

The only solution I came up with is to grab the header via curl or the likes and cache periodically. Then enhance it with session data which is shared across the servers, i.e. the basket count, username.

Thanks in advance, hope this makes sense

Andrew

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:54:36+00:00Added an answer on June 11, 2026 at 6:54 am

    Since you’re using a single server to reverse proxy, you can perform ajax requests to this single site without worrying about any of the cross-site policy shenanigans.

    Lets say you have the following

    /blog -> Your blog server
    /notblog -> Your EC server.

    From a page served from under /blog you can fetch a url like /notblog/basket.php with an ajax request, and update various parts of your header with the relevant information.

    Alternatively (a far more crude solution) would be to include /notblog/basket.php as a script file, and dynamically generate javascript that simply prints your header contents. (remember to add headers to prevent it from caching!)

    Both of these require an extra request to your site, but so would your proposed solution of using cURL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As part of my ecommerce application, I have this interesting problem, I've been trying
I have an ecommerce working in ASP.Net MVC. I'm using Caching to improve performance
I am currently building an ecommerce site with PHP/MySQL. Recently, I have been working
Where I work we have an ecommerce system on an intranet set up to
This could just as well apply to any ecommerce system such as Magento. I
I have a problem with an ecommerce system i built for a client, some
I have a ecommerce system that i wrote by myself. I have a table
I'm currently working on a legacy eCommerce system front-end that has alot of duplicate
I have an ecommerce website that works in a classical way: people sign up,
I have an ecommerce gift store where users can fill out a gift-card for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.