title: Add facebook like button within session
body: <p>I'm currently having the following code in a colorbox iframe:</p>
  
  <pre><code> &lt;? If($_Session['login']) { ?&gt;
  
   Complete website + Metaheaders facebook like button + fb like button
  
   &lt;? } else { header('location: index.php'); ?&gt;
  </code></pre>
  
  <p>So if someone has logged in, a session is set and he can view the colorbox content. If no session is set, you will be redirected to the main page.</p>
  
  <p>My problem is the following: when someone is logged in and pushing the fb like button in the colorbox iframe, he grabs the data of index.php. When I remove the if session check statement, he grabs the right data, so from the metaheaders within the colorbox iframe. How can I use a fb like button within a php session</p>