title: Codeigniter csrf protection error:
body: <p>I Am using CI 2. I have enabled CSRF protection in the config file:</p>
  
  <pre><code>$config['csrf_protection']   =  TRUE;
  $config['csrf_token_name']   =  'sitename';
  $config['csrf_cookie_name']  =  'sitename';
  $config['csrf_expire']       =  7200; 
  </code></pre>
  
  <p>I am using Codeigniter forms only. Sometimes I get the error “you are not authorized to perform this action” wile submitting forms or login.</p>
  
  <p>If I refresh and try again then every thing works fine. Why is this happening?</p>