I think that the "Memory" session store still tries to store all sessions
to disk when the app server exits, and it still tries to read in all
sessions when the app server starts. It just doesn't do any disk access
while the app server is running.
What exactly is the problem you're having? Are you trying to store Python
class instances in sessions? This is known not to work, and nobody has
tried to fix it yet. If this is your problem, someone else recently worked
around the problem by calling pickle.dumps() when storing an object in the
session, and calling pickle.loads() when loading the object from the
session. That way you're only really storing strings.
The session code internally uses pickle, so I'm not sure why it doesn't
work. I'd love to look into the problem but I don't have time right now.
Alternatively, if you really want a purely in-memory session store that
never saves sessions to disk, you could modify your copy of
SessionMemoryStore.py and just comment out the parts that do the saving and
loading.
At 11:25 AM 5/23/01 -0700, Bradley Marshall wrote:
>OK,
>
>I just did a "chmod a-w" on the Sessions directory.
>That fixes my problem, but I suppose isn't the ideal
>fix. Is there a better way?
>
>Brad
>
>
>--- Bradley Marshall <[EMAIL PROTECTED]> wrote:
> >
> > Hey guys,
> >
> > My webware is running great, except that I'm caching
> > objects in user sessions that webware can't cache to
> > disk. Then, when they come back, or when I try to
> > restart Webware, I get errors and my whole
> > application
> > is hosed until i do a rm -rf * in the Sessions
> > directory. Can I just turn off disk-caching
> > altogether? I tried doing:
> >
> > 'SessionStore': 'Memory',
> >
> > In Application.config, but that didn't work.
> >
> > Thanks
> > Brad
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> > prices
> > http://auctions.yahoo.com/
> >
> > _______________________________________________
> > Webware-discuss mailing list
> > [EMAIL PROTECTED]
> >
>http://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>_______________________________________________
>Webware-discuss mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/webware-discuss
--
- Geoff Talvola
[EMAIL PROTECTED]
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss