AW: [Phplib-users] IIS and cookie mode
Brought to you by:
nhruby,
richardarcher
|
From: Christof B. <chr...@be...> - 2002-04-20 18:27:43
|
> Can someone tell me how to convince PHPlib to propagate session IDs wit=
h
> cookies (actually, how to get it to work) on IIS?
a long time ago we had the same problem
this is what our kb says about it (IIRC we=B4ve choosen "c"):
A. There is a way -- but it doesn't work in fall-back mode:
Subject: [PHPLIB] IIS 4 is real pupu!
From: Giancarlo Pinerolo <pi...@ac...>
Date: 1999-01-13 13:08:02
Ok that IIS 4 flushes cookies and wants to start any new session in
'get'
mode but, even after applying the suggested changes (A 'META HTTP-REFRES=
H
to
itself' instead of a 'location: PHP_SELF', and set PHPLIB to send cookies=
in
any case, even if in fallback-get mode), I found that all HTTP_POST_VARS
are
lost when in *real* 'get' mode (eg when cookies are *really* disabled)...
B. You should not want to use the GET fallback mode and it probably won't
work
if you use one of the fixes to make cookies work on IIS:
Subject: [PHPLIB] IIS, Netscape Server vs. PHPLIB redirect (was: php=
lib
&
win32)
From: Kristian =3D?iso-8859-1?Q?K=3DF6hntopp?=3D <kk...@sh...>
Date: 1999-01-20 13:53:52
...Cookie mode is the only _sane_ way to maintain such an application.
Get
mode is there so you can save your butt, should it dangle in the wind. Bu=
t
it
is not easy. It should not be easy to maintain solutions that are broken =
in
the first place.
C. Here is a way:
Subject: RE: [PHPLIB] Cookies not work
From: "Brian Andrews" <br...@in...>
Date: 1999-04-10 23:58:02
If you are using IIS on NT its not going to use cookie mode as the wa=
y
PHPLib works out of the box isn't compatible with IIS. IIS won't send a
cookie
and do a Header:Location in the same request. You have to modify some cod=
e
(the start function in session.inc) so it does a META REFRESH instead of =
the
Header.
HTH
cb
|