Hi all -
I wrote about this a month or two ago and didn't really get a response
but it's starting to bite me again.
I'm trying to store LDAP connection objects in the user session and
because the underlying LDAP objects (from the python-ldap.sf.net
modules) aren't "pickleable", on shutdown of the AppServer, an error is
thrown and on top of that the AppServer I guess writes the Session to
disk anyway (which it probably shouldn't) and then when I try and
restart the AppServer, it exits with the following error:
File "./WebKit/SessionMemoryStore.py", line 23, in __init__
File "./WebKit/SessionFileStore.py", line 55, in __getitem__
KeyError: 20021202101928-72a11220b9961fe879564b63447a8d6a
My problem that I don't get is why when I tell the AppServer to use a
MemoryStore model, it still writes to disk. I don't want my sessions
to persist after their timeout. There are a million reasons not to
want this persistence one of which is that if your objects aren't
pickleable, it crashes.
I think this should be addressed in the next release as I find it hard
to understand the reason behind wanting to store ALL sessions to disk
on shutdown or timeout.
BTW, in case people aren't familiar with LDAP, I can't just pool the
objects like with DBPool because LDAP access control is based upon the
unique username/password.
Thanks for any help.
Mike
-------------------------------------------------------
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
- Re: [Webware-discuss] session persistence Michael Engelhart
- Re: [Webware-discuss] session persistence Ian Bicking
- Re: [Webware-discuss] session persistence Michael Engelhart
- RE: [Webware-discuss] session persistence Geoffrey Talvola
- Re: [Webware-discuss] session persistence Michael Engelhart
