Re: [Phplib-users] falback_mode and session4
Brought to you by:
nhruby,
richardarcher
|
From: Giancarlo P. <gia...@na...> - 2002-06-04 14:55:39
|
Maxim Derkachev wrote: > > Hello Giancarlo, > > Tuesday, June 04, 2002, 6:07:26 PM, you wrote: > > GP> But PHP4 session doesn't handle that. If there's no cookie nor > GP> session-URL, simply session is started but not propagated. > GP> So in practice there no fallback possibility with session4. > GP> Am I right? > GP> I am wondering if the initial Header:302 trick can be performed with > GP> session4, to accomplish that compatibility. > > If fallback mode is defined and trans_id_enabled is set to false, the > session will be propagated using url() and purl() - they will add > SID if no session cookies are installed. The only thing that is > missing is the first redirect which is used in session3 to determine > if the session cookies are used. > The reason it is missing coming from my opinion that this redirect is not > needed at all - if the cookies are used, SID will disappear from urls > automatically after the second click, but we'll save a reload. If > there is no cookies, url() and purl() will do the job. Of course, we'll > have SID in links at the first click, but it's only aesthetics. Moreover, > this behavior (the first redirect) is not supported by native PHP4 session > module, and even if we try to be compatible with the good old PHPlib, we > can not ignore changes. I guess the better way is to use the standard > trans-sid feature. Yes, in practice it doesn't work only if you do a realod. It works with whatever link you click. Sorry, but I got stuck looping in the example page, and normally use to hit reload to see the counter increase... The link on top is OK. Gian |