title: CSRF token could not be verified
body: <p>I know this has been asked already, but my question is a bit different. In my .php file, I have:</p>
  
  <pre><code>&lt;?php
  /* @var $this SiteController */
  $this-&gt;pageTitle=Yii::app()-&gt;name;
  ?&gt;
  
  &lt;div id="page-content"&gt;
      &lt;h1 class="gasparregular"&gt;Welcome back, &lt;?php echo Yii::app()-&gt;user-&gt;table-&gt;name ?&gt;!&lt;/h1&gt;
      &lt;h2 style="color:white;"&gt;Current Promotion: &lt;?php echo Yii::app()-&gt;user-&gt;table-&gt;promo ?&gt;&lt;/h2&gt;
      &lt;span class="help-text"&gt;To check, please enter their xxxID:&lt;/span&gt;
  
      &lt;?php
      if(isset($_POST['submit'])) 
      {
  
          $message=
          'First Name: '.$_POST['xxxid'].'&lt;br /&gt;
          Last Name: '.$_POST['xxxid'].'&lt;br /&gt;
          Phone:  '.$_POST['xxxid'].'&lt;br /&gt;
          Email:  '.$_POST['xxxid'].'&lt;br /&gt;
          Comments: '.$_POST['xxxid'].'
          ';
  
          require "phpmailer/class.phpmailer.php";
  
          // Instantiate Class  
          $mail = new PHPMailer();  
  
          // Set up SMTP  
          $mail-&gt;IsSMTP();               
          $mail-&gt;SMTPAuth = true;         
          $mail-&gt;SMTPSecure = "ssl"; 
          $mail-&gt;Host = "smtp.gmail.com"; 
          $mail-&gt;Port = 465; 
          $mail-&gt;Encoding = '7bit';
  
          // Authentication  
          $mail-&gt;Username   = "xxx@xxx.com";
          $mail-&gt;Password   = "dswdcssd1yfs";
  
          // Compose
          $mail-&gt;SetFrom("xxx@xxx.com");
          $mail-&gt;AddReplyTo("xxx@xxx.com");
          $mail-&gt;Subject = "Hello";
          $mail-&gt;MsgHTML($message);
  
          // Send To  
          $mail-&gt;AddAddress("ggggdssae@hotmail.com", "Recipient Name");
          $result = $mail-&gt;Send();
          $message = $result ? 'Successfully Sent!' : 'Sending Failed!';     
  
          unset($mail);
          $URL="google.ca"; 
  
          header ("Location: $URL"); 
      }
      ?&gt;
  
  &lt;form name="form1" id="form1" action="" method="post"&gt;
      &lt;fieldset&gt;
          &lt;input type="text" name="xxxid" placeholder="xxx ID" /&gt;
          &lt;br /&gt;
          &lt;input type="submit" name="submit" value="Validate" /&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I enter a number and click the validate button, it sends an email. It works fine in my local environment without Yii. But when I put it on the live site where it uses Yii, I get:</p>
  
  <blockquote>
    <p>ErrThe CSRF token could not be verified.</p>
  </blockquote>