title: Codeigniter CSRF token problem
body: <p>I've made a simple signup/newsletter site, but I've got a weird problem. Some people get a error that says</p>
  
  <blockquote>
    <p>An Error Was Encountered The action
    you have requested is not allowed.</p>
  </blockquote>
  
  <p>I've already tried google and found that people had the same problem when CSRF was set to true. However, i doesn't happens to everyone, just a small group of people. I'm using form_open and form_close and i can see the hidden field (token).</p>
  
  <p>I'm using the latest version of Codeigniter 2.0.2</p>
  
  <p><strong>This is my controller</strong></p>
  
  <pre><code>    function __construct() {
      parent::__construct();
      session_start();
  }
  
  function index() {
  
      $this-&gt;load-&gt;model('beta_signup_model');
  
      $this-&gt;form_validation-&gt;set_rules('mail','e-mail','required|valid_email|xss_clean|callback__mail_check');
  
      // Check for errors
      if($this-&gt;form_validation-&gt;run() == FALSE) {
  
          // The system found a form validation error
  
  
      } else {
  
          // No errors found
          $_SESSION['mail_success'] = 1;
          $_SESSION['mail'] = $this-&gt;input-&gt;post('mail');
  
          redirect(base_url() . 'confirm');
  
      }
  
      ///// FILLS OUT INPUT FIELDS /////
  
      // Loads field_populator_helper
      $this-&gt;load-&gt;helper('field_populator_helper');
  
      // Defines input field names
      $input_names = array(
                      'mail',
      );
  
      // Defines default values   
      $default_values = array(
                      'Skriv inn e-posten din..',
      );
  
      // Auto-populates fields with blur and focus
      $data['field_populator'] = populateFields($input_names, $default_values);
  
      $this-&gt;load-&gt;view('frontpage_view', $data);
  
  }
  </code></pre>