Re: [Phplib-users] falback_mode and session4
Brought to you by:
nhruby,
richardarcher
|
From: Maxim D. <max...@bo...> - 2002-06-04 14:41:47
|
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. Nevertheless, it is only my opinion, and such a thing can be easily implemented to accomplish the compatibility. BTW, there are some more serious incompatibilities. Look in README for them. -- Best regards, Maxim Derkachev mailto:max...@bo... IT manager, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru |