5 lines
147 B
Python
5 lines
147 B
Python
|
from django.utils import timezone
|
||
|
|
||
|
|
||
|
def session_expiry(start=timezone.now(), validity=timezone.timedelta(seconds=300)):
|
||
|
return start + validity
|