Re: Re[4]: [Phplib-users] Max's session class
Brought to you by:
nhruby,
richardarcher
|
From: Donncha O C. <don...@tr...> - 2002-06-27 11:02:46
|
Hi all, I'm dragging up an old thread but I'm only now getting around to investig= ating=20 PHP4 properly. I'm trying to figure out which session class to use with P= HP4. The stable directory has the following: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib-stable/unsu= p/ which were added only 5 months ago And the unstable has=20 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib/php/session= /=20 which are older files. The session4_custom.inc in each directory is exactly the same, but the st= able=20 directory doesn't have a session4.inc file which confused me as it's requ= ired=20 by the former file. Shouldn't session4.inc be in the tarball that's relea= sed=20 to the public? (this question was also raised elsewhere in this thread la= st=20 March..) To install the session code, I think I do the following.. 1. Download the session4.inc file from=20 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib/php/session= /session4.inc 2. Copy that file to my include directory in a sub-directory called sessi= on. 3. Rename session.inc in my include directory so it's out of the way. 4. Copy ~/phplib-7.4-pre1/unsup/session4_custom.inc to session.inc in my=20 include directory. 5. Change local.inc so that the session class there inherits from=20 Custom_session and configure the storage variables and other settings. Is that correct? If it is, it's going on a webpage so Google can find it,= the=20 list archives don't seem to there.. Donncha. On Wednesday 13 March 2002 09:20, 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? Bec= ause > 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 maxim= um > 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. |