nick at dd.revealed.net
Fri Feb 11 14:41:14 EST 2005
Well, essentially that *is* an external database. I haven't used the one that comes with mod_python, but is it possible for all requests to use the same session ID so that they all see the same session, rather than one for each client? Nick donnie jones wrote: > Ack... heh, I'd rather not go for that. ;-) > > I wonder if I could store the variable in a session? > In my actual application, the variable is a dictionary, do you think > it would be > fine to store a dictionary inside a session's dictionary? > > Thanks for everyone's help. > __ > Donnie > > > On Fri, 11 Feb 2005 13:10:21 -0600, Nick <nick at dd.revealed.net> wrote: > >>I think your only recourse here is to lower the children to 1 and up the >>number of threads (a la windows), or else use an external database to store >>your variables. >> >>Nick >> >>donnie jones wrote: >> >>>---------- Forwarded message ---------- >>>From: donnie jones <donniejones18 at gmail.com> >>>Date: Fri, 11 Feb 2005 14:02:48 -0500 >>>Subject: Re: [mod_python] pass variables between functions. >>>To: Scott Sanders <sanders at apache.org> >>> >>> >>>I believe I am having this problem because if I reload the x=x+1 >>>function many times, sometimes it will increment the value and >>>sometimes it won't... so I assume it is depending upon which thread >>>has loaded. >>> >>>Is there a way around this so that I have a consistent value between >>>the functions? >>> >>>Thank you.