Re: [phplib] What is the "good" choice ? From: Maxim Derkachev (max.derkachev <email protected>)
Date: 08/12/01

Hello Guillaume,

Sunday, August 12, 2001, 7:01:25 AM, you wrote:

GD> I've seen 3 differents session.inc to manage native PHP4 session in the
GD> CVS at sourceforge...
GD> But which one is the good one ?

GD> php-lib/php/session/session4.inc ?
GD> or php-lib/php/session/session4_custom.inc ?
GD> or php-lib/php/phplib-4/session4.inc ?

session/session4.inc is a wrapper over native PHP4 sessions. It
conforms to the PHPLib API, but the implementation is rewritten almost
from scratch. It uses fast PHP's serialization mechanism (several
times faster than the old PHPLib's), has access to all the features of
PHP4 builtin sessions and allows fine tuning of options using PHPLib's
API. It uses PHP's native storage containers (files & mm).
session/session4_custom.inc is an extended class from the session4.inc
that implements custom savehandler for PHP4 sessions. It make use of
traditional PHPLib CT_* storage containers.
You can learn more from README_session4_custom. The information is
slightly outdated, but it apply to the both session4.inc and
session4_custom.inc (The both are descendants of session4_custom.inc ,
which was splet into two files/classes for the better abstraction).
These two classes are OFFICIALLY supported and will be moved to the
phplib-stable in the future (after appropriate testing), I guess they
are already quite stable.

Files in phplib4/ also work, but they are not supported by the core team
and haven't been changed for 8 months (actually, they had been moved
to the php-lib/unsup/ dir).

-- 
Best regards,
Maxim Derkachev mailto:max.derkachev <email protected>
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 

-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>