Re: [Phplib-users] IIS and cookie mode
Brought to you by:
nhruby,
richardarcher
|
From: anze <an...@vo...> - 2002-04-21 17:22:12
|
Hi!
The plan A (turn off fallback mode) worked for me... Just a word about this
code (plan C) - I looked it up on the Internet and someone wrote that it
doesn't work since the vars it uses are set in the part that follows it. I
didn't check it though. Just so that someone doesn't waste too much time
figuring out what he did wrong. :)
Thanks for help, have fun!
Anze
On Thursday 01 January 1970 00:59, you wrote:
> > 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 )
> && ( "coo
> kie" == $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.
|