title: CAS server login
body: <p>I have follwowing code on HRM application </p>
  
  <pre><code>include_once('CAS.php');
  
  phpCAS::setDebug();
  
  phpCAS::client(CAS_VERSION_2_0, "122.243.242.43", 443, 'cas',false);
  
  phpCAS::setNoCasServerValidation();
  
  phpCAS::forceAuthentication();
  
  $userName = phpCAS::getUser();
  </code></pre>
  
  <p>If i commented all the cas code and then hard code the value as  <code>$userName = "temp"</code> its working. when try to get the user name from cas server as   <code>$userName = phpCAS::getUser();</code> not working even i cant print  <code>$userName</code> display nothing.</p>
  
  <p>regards
  roshan</p>