Hi all,

Someone can tell me how to avoid losing the cherrypy session in tg1.3 ?

After logging in, I put in the session the user_id and the logname like this:
cherrypy.session['logname'] = tg.identity.current.user.logname
cherrypy.session['user_id'] = tg.identity.current.user.user_id

and my session is like this:

_id=122c1088a04e7d2decdfd46e0163a476af967d93
user_id=10
logname=pippo

but after a while (I don't know when or why) data disappear from session
and remains only:
_id=122c1088a04e7d2decdfd46e0163a476af967d93

I tried to save the session in a file, like this:
session_filter.storage_type = 'File'
session_filter.storage_path = '/tmp/'
now there's a file in /tmp/ like this one:
/tmp/session-122c1088a04e7d2decdfd46e0163a476af967d93

but even so I lose data and I have not in my code, any instructions such as: cherrypy.session.pop('user_id')
Where I'm wrong?

here my settings:

session_filter.on = True
session_filter.timeout = 240

What else should I setting to avoid data loss?

Thanks for any help
j

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to