title: Passing a variable from one page to another in Wordpress
body: <p>I was wondering if anyone could give me an idea of how to pass a variable to another page in Wordpress.<br>
  I need to be able to use the <code>get_the_ID();</code> function to set a variable which can be accessed from any page.<br>
  Would I be able to store the variable in a session or would that be a security issue?</p>
  
  <p>Am I completely on the wrong track because to be honest, I have no idea what I'm doing.Any help would go a long way.</p>
  
  <p>Cheers</p>