title: Security Error. Illegal access detected using ccavenue in php
body: <p>I am successfully redirecting to ccavenue payment gateway but on clicking the cancel button it is showing the error <strong><em>"Security Error. Illegal access detected"</em></strong> in the redirect url page.</p>
  
  <p>This is my redirecturl page:</p>
  
  <pre><code>&lt;?php include('Aes.php');include('adler32.php')?&gt;
  &lt;?php
   $workingKey='myWorkingKey';        //Working Key should be provided here.
   $encResponse=$_POST["encResponse"];    //This is the response sent by the CCAvenue Server
  
  
  $rcvdString=decrypt($encResponse,$workingKey);      
  $AuthDesc="";
  $MerchantId="";
  $OrderId="";
  $Amount=0;
  $Checksum=0;
  $veriChecksum=false;
  
  $decryptValues=explode('&amp;', $rcvdString);
  $dataSize=sizeof($decryptValues);
  
  echo "&lt;center&gt;";
  
  
  for($i = 0; $i &lt; $dataSize; $i++) 
  {
      $information=explode('=',$decryptValues[$i]);
      if($i==0)   $MerchantId=$information[1];    
      if($i==1)   $OrderId=$information[1];
      if($i==2)   $Amount=$information[1];    
      if($i==3)   $AuthDesc=$information[1];
      if($i==4)   $Checksum=$information[1];  
  }
  
  $rcvdString=$MerchantId.'|'.$OrderId.'|'.$Amount.'|'.$AuthDesc.'|'.$workingKey;
  $veriChecksum=verifyChecksum(genchecksum($rcvdString), $Checksum);
  
  if($veriChecksum==TRUE &amp;&amp; $AuthDesc==="Y")
  {
      echo "&lt;br&gt;Thank you for shopping with us. Your credit card has been charged and your transaction is successful. We will be shipping your order to you soon.";
  
  }
  else if($veriChecksum==TRUE &amp;&amp; $AuthDesc==="B")
  {
      echo "&lt;br&gt;Thank you for shopping with us.We will keep you posted regarding the status of your order through e-mail";
  
  
  }
  else if($veriChecksum==TRUE &amp;&amp; $AuthDesc==="N")
  {
      echo "&lt;br&gt;Thank you for shopping with us.However,the transaction has been declined.";
  
  }
  else
  {
      echo "&lt;br&gt;Security Error. Illegal access detected";
  
  }
  
  
  echo "&lt;br&gt;&lt;br&gt;";
  
  echo "&lt;table cellspacing=4 cellpadding=4&gt;";
  for($i = 0; $i &lt; $dataSize; $i++) 
  {
      $information=explode('=',$decryptValues[$i]);
          echo '&lt;tr&gt;&lt;td&gt;'.$information[0].'&lt;/td&gt;&lt;td&gt;'.$information[1].'&lt;/td&gt;&lt;/tr&gt;';
  }
  
  echo "&lt;/table&gt;&lt;br&gt;";
  echo "&lt;/center&gt;";
  ?&gt;
  </code></pre>
  
  <p><em>I googled about the issue but was not able to get any solution.</em> How to solve this error..Please give some suggestions regarding the same?</p>