Re[4]: [Phplib-users] Max's session class
Brought to you by:
nhruby,
richardarcher
From: Maxim D. <max...@bo...> - 2002-03-13 09:16:50
|
Hello Matt, Wednesday, March 13, 2002, 11:46:28 AM, you wrote: MW> So we have two session4's in the CVS or are they both the same? Because the MW> session4.inc in phplib-4 works with your class Max. MW> I've never looked at the stuff in phplib-4 because I got Max's one working MW> pretty good. Well, that could be - they export the same public API. But if You look close to the session4 in the phplib4 folder, You will see that the file consists of many lines from session3 class commented out, with some plugs for php4 session support. It uses the old-fashion serialize (instead of PHP4 serialize, which is much much better). It does not make use of session setup functions from the php4 module for setting up cache control, cookies behaviour, etc. Just compare the session4 classes in session/ & phplib4/ to see the changes. The session4.inc in the session folder was designed with maximum php4 session module usage in mind and session3 public API compatibility (we could not save all the things that are present in the session3, like $sess->in & $sess->pt, but it is only because it could not be achieved without messing the things up). MW> If it is the stuff from the CVS session folder, session4.inc should be MW> included in the distro, yes? Yes. The only file that was intended to be used with the session4_custom, is session4.inc from the session folder. -- Best regards, Maxim Derkachev mailto:max...@bo... System administrator & programmer, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru |