Hi Jason, You solution seems like an improved version of what I described as option 1. As a related question, do you know how MiddleKit manages caching? I wonder if MiddleKit has a mechanism to discard objects in memory?
I would be interested in seeing your solution. It seems like a good compromise, since it would apply to all MiddleKit objects. Cheers, Wayne --- Jason Hildebrand <[EMAIL PROTECTED]> wrote: > On Mon, 2002-11-25 at 18:11, Wayne Larsen wrote: > > Hey all, > > > > I see several ways around this, but I'm not sure > what > > is the best design. What do others do? > > > > 1. Store only a handle to the user in the session, > and > > retrieve the user object from the database when > > necessary > > 2. Store the relevant information from the user in > the > > session, instead of just stuffing the whole object > > into the session > > 3. Enhance MiddleKit to allow this to work > > 4. Build a user cache into the user manager (which > > appears to be what the design for UserKit is > allowing > > for, but is not implemented). > > Hi Wayne, > > I've been here before. I implemented custom > encoder/decoder routines > which dealt with MiddleKit objects by saving the > object id in the > pickle, and reloaded them from the store when > decoding. It's > transparent, and works fairly well. > > I've had some unexplained tracebacks, though, and I > have suspicions that > something is interacting poorly with this code (I > don't yet know how or > why). I can send you the code, though, if you want > to take a look. > > cheers, > -- > Jason D. Hildebrand > [EMAIL PROTECTED] > -- > Jason D. Hildebrand > [EMAIL PROTECTED] > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm > Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss