title: Refresh Session and Array without refreshing page
body: <p>just hope this is not a stupid question.</p>
  
  <p>I have an eCommerce site and when user adds an item to cart. On top of the page I have this function which count the array and then shows the user how many item is in cart.</p>
  
  <p>Then I am store the total cart price in a session to show show on top of the page as well.</p>
  
  <p>I am using  Jquery to add an item to cart but the problem is you have to refresh the page to so that you can see the total cart item and total cart price(On top of the page. Not the cart page. So don't get it mix it).</p>
  
  <p>I used <code>location.reload();</code> to reload in the Jquery  but this refresh the own page.</p>
  
  <p>To show the number of item the user have in cart I did <code>count</code></p>
  
  <p><code>&lt;?php echo count($_SESSION["cart_array"])?&gt;</code></p>
  
  <p>and for  the total item price echo the session</p>
  
  <p><code>&lt;?php echo $_SESSION['smallcart'];?&gt;</code></p>
  
  <p>How can I use PHP or any other form to refresh the <code>count</code> and the <code>smallcart</code> session without refresh the page.</p>
  
  <p>Those those are in my pageheader.php</p>
  
  <p>which I 
  <code>&lt;?php include realpath(dirname(__FILE__)."/../../pageheader.php"); ?&gt;</code></p>
  
  <p>is  they a way i can refresh the <code>pageheader.php</code> without refresh the page <code>body</code>.</p>