I tried to make logins surviving browser restarts but it didn't work (also in
previouse releases)
Doing the following changes in the application's common.py:
if settings.SESSION_TYPE == "cookies":
session = Session(secret=settings.SESSION_SECRET_KEY, expiration=60*60*24*30)
and:
:
:
elif settings.SESSION_TYPE == "database":
from py4web.utils.dbstore import DBStore
session = Session(secret=settings.SESSION_SECRET_KEY, storage=DBStore(db), expiration=60*60*24*30) # 30 days
As well as modifying py4web/core.py (see changes in the attached file)
did the trick.
Is it possible to add the attached core.py to py4web for preseving the change for future releases/updates ?
Thanks