From: Johan K. <joh...@az...> - 2003-09-26 06:59:14
|
> > > So, to my question: Is there a way to save module-specific state > > information in the session? Or can I use the privdata_t in the cmd to > > store session data? Or am I simply going about things the wrong way? Is > > there a better way to accomplish what I want to do? > >If all you need is to maintain state for the duration of the session, why >not allocate a static global structure in your module that's allocated out >of session.pool? That memory will remain valid for the entire session and= is >automatically freed when the child process exits. A static global structure? Hmm... Yes, the entire process is FORKed=20 whenever a new session is started, isn't it? If I'm not dealing with=20 thread, this would definitely work! Now, why didn't I think of that from=20 the beginning!? *bonk* Anyhow, thanks a bunch John! >Good luck with your module - it sounds quite interesting! :-) - Johan --- Johan Kris=E1r, Azzets AB joh...@az... Ph: +46-708-57 47 27 |