Date: 02/02/00
- Next message: Chester McLaughlin: "Re: [PHPLIB] How can I get the ONLY unique field? (db related)"
- Previous message: Tristan Celder: "[PHPLIB] How can I get the ONLY unique field? (db related)"
- In reply to: Tony.Tocco <email protected>: "[PHPLIB] purl() problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 2 Feb 2000 Tony.Tocco <email protected> wrote:
}
}
}When I load the default https://web/index.php3 it redirects me to
}http://web/index.php3 causing (of course) an error of page not found. Is this a
}problem in purl()? Is it a problem within phplib or php? Where should I fix it
}(auth.inc)?
}
}If you add the s to the http on the second call all works well from that point
}on.
No, this is a problem in release_token() in session.inc.
It desitincts between http and https with the global variable $HTTPS.
function release_token( $sid = "" ){
global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $HTTP_HOST, $HTTPS;
if ( isset($this->fallback_mode)
&& ( "get" == $this->fallback_mode )
&& ( "cookie" == $this->mode )
&& ( ! isset($HTTP_COOKIE_VARS[$this->name]) ) ) {
if ( isset($HTTP_GET_VARS[$this->name]) ) {
$this->mode = $this->fallback_mode;
} else {
header("Status: 302 Moved Temporarily");
$this->get_id($sid);
$this->mode = $this->fallback_mode;
if( isset($HTTPS) && $HTTPS == 'on' ){
## You will need to fix suexec as well, if you use Apache and CGI
PHP
$PROTOCOL='https';
} else {
$PROTOCOL='http';
}
header("Location: ". $PROTOCOL.
"://".$HTTP_HOST.$this->self_url());
exit;
}
}
}
If it is not set, $PROTOCOL remains "http", otherwise "https". Perhaps
this var is not set. It will be set by the $server. Which Server are you
using?
Perhaps you can make a change to this function, that it will look into
the URL or something like that...
--SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032
- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Chester McLaughlin: "Re: [PHPLIB] How can I get the ONLY unique field? (db related)"
- Previous message: Tristan Celder: "[PHPLIB] How can I get the ONLY unique field? (db related)"
- In reply to: Tony.Tocco <email protected>: "[PHPLIB] purl() problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

