SP/web2py/applications/examples/models/session.py

4 lines
156 B
Python
Raw Permalink Normal View History

2018-10-25 15:33:07 +00:00
from gluon.utils import web2py_uuid
cookie_key = cache.ram('cookie_key',lambda: web2py_uuid(),None)
session.connect(request,response,cookie_key=cookie_key)