Re: [Phplib-users] IIS and cookie mode
Brought to you by:
nhruby,
richardarcher
|
From: Christof B. <bea...@as...> - 2002-04-20 18:31:54
|
> Can someone tell me how to convince PHPlib to propagate session IDs with
> cookies (actually, how to get it to work) on IIS?
...just found the code that Mike Green posted on that:
function start($sid = "") {
global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $HTTP_HOST, $HTTPS;
$this->name =
$this->cookiename==""?$this->classname:$this->cookiename;
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 {
$this->get_id($sid);
$this->mode = $this->fallback_mode;
echo "<meta http-equiv=\"Refresh\" content=\"0;
URL=".$this->self_url()."\">\n";
exit;
}
etc....[rest unchanged]
Cookie mode works after this.
HTH
Christof Beaupoil
|