Hello Buddies
Have a look at this
http://webpy.org/cookbook/sessions_with_subapp
It shows a trick to use sessions with subapps ... can anyone tell me
if this solution is superior to a simple
solution as shown below and if yes then how. Actually I still dont
understand hooks properly and dont want 2 use it if it is not needed
app1.py
session = web.session.Sessions(required parameters)
web.config._session = session
session.attribute = 'foo'
app2.py
if web.config.get('_session') is None:
return "Session did not live"
else:
session = web.config._session
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.