Hello,

I came across an issue when retrieving session data. I simplified the
app to basically this code in a model:

# -*- coding: utf-8 -*-
try:
    session.i += 1
except:
    session.i = 1

It works fine in a fresh new application (i.e. session.i increases its
value).
If I switch to use sqlite for storing the session, i.e. I run:

# -*- coding: utf-8 -*-
db = DAL('sqlite://storage.sqlite')
session.connect(request, response, db = db)
try:
    session.i += 1
except:
    session.i = 1

...it still works as expected. However if I return to from sqlite to
the first version (i.e. I want to continue using the sessions stored
in files), session does reload any longer (session.i stays at value
1).

This is always isolated to the application I am working with.
Therefore I find interesting that restart of Apache restores the
correct behavior.

My platform: Running on Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/
0.9.8r mod_wsgi/3.3 Python/2.7.2

Thank you for your help.
David.

Reply via email to