Hi,

Have a TG1.0b1 app which doesn't use a db-backend,
ie, so don't use Identity etc. So I'm using CP's session
implementation (File-based - as the RAM-based impl
is buggy for flup/lighty based proxies).

When a user logsout of the app, I'd like to mark that user's
session for immediate expiry and setup the CP-SessionFilter
to do the clean immediately (on a seperate thread).

Searched around but found no recipe for this. Thought I could
do something like, in say /logout, I tried to update (file-based)
session info with:
   cherrypy.session.save(cherrypy.session["_id"], None,
datetime.datetime.now())
(ie, session to expire now) and setup cleanup for right now by,
   cherrypy._session_last_clean_up_time = 0
and calling:
   cherrypy.session.clean_up(sess)
where:
   sess = cherrypy.request._session
It fails with AttribErrors... as what I'm trying to do is syntactically
invalid...

Tried asking in CP users grp, but looks like no one is able to
shed light on this... thought I'll ask here.

Thanks,
/venkat


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to