List Info

Thread: session recovering - mpcp




session recovering - mpcp
user name
2006-05-23 13:31:20
Hi!
I've a little problem with the cherrypy sessions: when it
runs as a
standalone,it's perfect.
But now, it runs behind Apache, through the mpcp gateway :
then, each
time a page is loaded, a new cherrypy.session is created
because of the
gateway;
- I stored the first cherrypy.session[_id] in a cookie
(juste saved the
_id)
- I can retrieve this id
- Now, what do I have to write, to make cherrypy recovering
the session
corresponding to this id?


PS: i'm using files as storage type.

Thanks,
Pat


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

session recovering - mpcp
user name
2006-05-24 11:16:17
Adding 2 lines in the mod_python handler seems to solve the
pb:

def handler(req):
    config = req.get_config()
    options = req.get_options()
   #add session (import Session from mod_python
    sess = Session.Session(req)
  ...
  ...
    request.close()
   #add sess.save()
    sess.save()
    return ret


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )