title: Codeigniter Session Class doesn't appear to work in facebook iframe
body: <p>I built a simple yes or no quiz app using codeigniter. It's a facebook page tab and so is accessed in an iframe.</p>
  
  <p>As the user progresses through the quiz their score is incremented by +1 for every correct answer and stored using the session class.</p>
  
  <p>It work's great in Chrome but in safari the score doesn't store for some reason.</p>
  
  <pre><code>//if the user answered correctly add one correct answer
  
  $correct_answers = $this-&gt;session-&gt;userdata('correct_answers');
  $correct_answers += 1;
  $this-&gt;session-&gt;set_userdata('correct_answers', $correct_answers);
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have printed out the session data onto the app and I can see that the first correct answer is stored but then if you answer incorrect it does not show anything for 'correct_answer's. It also doesn't increment. If you were to answer all questions correct the final result is 1. If none are correct the final result is 0.</p>