title: Force refresh on login/logout in wordpress
body: <p>I am relatively new to PHP and can't figure out how to refresh all pages after log in or log out from a wordpress site?</p>
  
  <p>When a visitor goes to my site some content appears. However, when the user logs in, the page loads some additional content (only logged in users can see). Since, I am leveraging browser caching, even after logging in the visitor sees the old (cached) copy of page. If I do <code>Ctrl</code>+<code>F5</code> the page shows what it ideally should...</p>
  
  <p>In short I am looking for a way to refresh all browser cached pages after log in and log out operations.</p>
  
  <p>I have activated W3 Total Cache to use browser caching.  </p>
  
  <p>PS: Please do not suggest a plugin.</p>