title: SimpleSAMLPHP redirection loop
body: <p>we are trying to setup sso with custom mysql database but it is going into endless loop between below two requests.</p>
  
  <pre><code>POST http://192.168.0.15/simplesaml/module.php/core/loginuserpass.php
  </code></pre>
  
  <p><strong>Set-Cookie</strong></p>
  
  <pre><code>PHPSESSID=d0eaabb959ffeb2a0dd20f4744945f8f; path=/; HttpOnly
  SimpleSAMLAuthToken=_297a91e9a4e14c61d247427063201a39587396c2e3; path=/; httponly
  
  http://192.168.0.15/simplesaml/module.php/core/loginuserpass.php?AuthState=_e3e75218660095b936b9582356bcbc7b1e26934876%3Ahttp%3A%2F%2F192.168.0.15%2Fsimplesaml%2Fmodule.php%2Fcore%2Fas_login.php%3FAuthId%3Dexample-sql%26ReturnTo%3Dhttp%253A%252F%252F192.168.0.2%252F%252Fver06%252Fapp.php
  </code></pre>
  
  <p><strong>Set-Cookie</strong></p>
  
  <pre><code>PHPSESSID=92688949c724d39e673eec73b0674de0; path=/; HttpOnly
  </code></pre>
  
  <p><code>192.168.0.15</code> is our sso server and <code>192.168.0.2</code> is the website which is requesting for sso.</p>
  
  <p>Are we missing anything? also is there any client and server separation of sso modules for ease of use.</p>
  
  <p>Also we are not getting log file generated. permissions verified on folder.   </p>