kumidc/authentication/helpers/session.py

5 lines
147 B
Python
Raw Normal View History

2022-08-04 11:15:10 +00:00
from django.utils import timezone
def session_expiry(start=timezone.now(), validity=timezone.timedelta(seconds=300)):
return start + validity