function setSessionCookiePath() { // get the right url for the script... somehow $_SERVER["REQUEST_URI"] // is returning things like "http://83.102.183.10.in-addr.arpa/plog/test.php" // in my case which are correct but probably not what we're expecting! $scriptUrl = HttpVars::getBaseUrl(); $url = new Url( $scriptUrl ); $path = dirname($url->getPath()); if( $path == "" || $path == "\\" ) $path = "/"; $log =& LoggerManager::getLogger(); $log->debug("cookie path = $path"); ini_set( "session.cookie_path", $path ); }