Re: [Phplib-users] Max's session class
Brought to you by:
nhruby,
richardarcher
From: Mike G. <Mik...@sa...> - 2002-03-13 22:08:27
|
Could someone give some pros and cons of using session4.inc vs session4_custom, i.e., (apparently of) using a standard PHP4 save_handler vs MySQL, etc., storage using CT_* classes? And for that matter, pros and cons of using a save_handler vs those supplied by PHP4 sessions? TIA! Mike Green Maxim Derkachev wrote: > 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 > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users -- Mike Green SaeSolved:: http://www.saesolved.com http://www.everypeople.net http://www.sitewidgets.com http://www.widgetchuck.com |