Date: 03/29/00
- Next message: Björn Schotte: "[PHPLIB] Too long session.val with PHP4.0RC1"
- Previous message: postmaster <email protected>: "[PHPLIB] Re: RE: [PHP3] persistent data"
- In reply to: nicholas klem: "[PHPLIB] RE: [PHP3] persistent data"
- Next in thread: nicholas klem: "Re: [PHPLIB] Re: [PHP3] persistent data"
- Reply: nicholas klem: "Re: [PHPLIB] Re: [PHP3] persistent data"
- Maybe reply: Allen Lee: "RE: [PHPLIB] Re: [PHP3] persistent data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Mar 29, 2000 at 07:13:23PM +0200, nicholas klem wrote:
> On Wed, 29 Mar 2000, you wrote:
> > > Yes, but how is this persistence implemented? Is there a
> > > mechanism for preserving these variables in server memory?
> >
> > Not in server memory. While server side session management
> > would be awesome, I don't know how feasible that would be.
> > As of right now, the only way I know of to keep persistant data
> > is through the use of client side cookies.
>
> I'm experimenting with phplib, and I strongly suspect that it is possible to
> configure the class sessions to store itself and children in some kind of
> shared machine-memory. The example configuration file comes like this:
>
> #class Example_CT_Shm extends CT_Shm {
> # var $max_sessions = 500; ## number of maximum sessions
> # var $shm_key = 0x123754; ## unique shm identifier
> # var $shm_size = 64000; ## size of segment
> #}
As the author of ct_shm I strongly discourage people from running it
on production servers. The way shared memory is handled by the shared
memory module is far from being efficient. For example, if you store
1000 variables and delete the first one, the module will copy 999 variables
including the variable data to avoid memory fragmentation.
- Sascha
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Björn Schotte: "[PHPLIB] Too long session.val with PHP4.0RC1"
- Previous message: postmaster <email protected>: "[PHPLIB] Re: RE: [PHP3] persistent data"
- In reply to: nicholas klem: "[PHPLIB] RE: [PHP3] persistent data"
- Next in thread: nicholas klem: "Re: [PHPLIB] Re: [PHP3] persistent data"
- Reply: nicholas klem: "Re: [PHPLIB] Re: [PHP3] persistent data"
- Maybe reply: Allen Lee: "RE: [PHPLIB] Re: [PHP3] persistent data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

