SP/web2py/applications/examples/models/session.py
Saturneic 064f602b1a Add.
2018-10-25 23:33:13 +08:00

4 lines
156 B
Python

from gluon.utils import web2py_uuid
cookie_key = cache.ram('cookie_key',lambda: web2py_uuid(),None)
session.connect(request,response,cookie_key=cookie_key)