List Info

Thread: session variables




session variables
user name
2006-02-18 14:46:21
With cherrypy.session['mysession'] session variables ...

What are convenient coding patterns are people using to
get/set session variables within application methods?  I'm
not referring to backend database storage, just in-process
work.  Decorators?  Python __getattr__/__setattr__ magic?


--~--~---------~--~----~------------~-------~--~----~
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 variables
user name
2006-02-18 15:02:02
I am using decorators for an autologin function.
I have a number of url mapped methods and for some
of them I want to check the presence of certain cookies
and then set some session variable based on the cookie.
I found decorators very convenient for this because its
easy to turn them on and off at will.


--~--~---------~--~----~------------~-------~--~----~
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 )