Hi,
>> >> Btw, another argument in merging updateTimestamp() into write() is
>> >> that userland implementations of it up until now have only been
>> >> possible by altering write(), so at least some users should be more
>> >> familiar with that approach.
>> >
>> >
>> > Component only does its jobs with good implementation.
>> > Session module consists of session manager, session save handler and
>> > session
>> > serializer.
>> >
>> > Session manager should manage how it works.
>> > Session save handler should save/retrieve session data only.
>> > Session serializer should serialize/unserialize data only.
>> >
>> > It breaks this design with your suggestion.
>> > So letting save handler do the manager's job is not good. IMO.
>>
>> I don't understand how that's breaking any kind of design. Could you
>> elaborate?
>
>
> Manager should manage how session behaves, not save handlers.
> It's basic principle of modular design.
I still don't get it ... the session manager has to call either
write() or updateTimestamp() and both of these are part of the session
handler. Merging them into one solves the API design and BC issues, I
don't see how it breaks any principle. They can still be split to two
methods in PHP6, but for the time being, using write() for both
purposes IMO solves way more problems than sticking to this design
principle you're talking about.
Cheers,
Andrey.