
 António Abrantes - 2006-02-07 12:17:05 - 
In reply to message 2 from Olaf LedererHello,
My problem is resolved.
I cannot access protected page because session.save_path on my server have ".\" and with this i cannot have protected pages on other directory.
I resolved this with script:
//////////
<?PHP 
  //Resolve DOCUMENT_ROOT on IIS
  $pathInfo                 = $_SERVER["PATH_INFO"]; 
  $pathTranslated           = $_SERVER["PATH_TRANSLATED"]; 
  $pathInfo                 = preg_replace("/\//", "\/", $_SERVER["PATH_INFO"]); 
  $pathTranslated           = str_replace("\\\\", "/", $_SERVER["PATH_TRANSLATED"]); 
  $_SERVER["DOCUMENT_ROOT"] = preg_replace("/$pathInfo/", "", $pathTranslated); 
  //print $_SERVER["DOCUMENT_ROOT"]; 
  //exit; 
//define session.save_path
session_save_path($_SERVER['DOCUMENT_ROOT']."/cgi-bin/tmp");
?>
///////////
Thanks PHP community, this is great.