[sessions] [fix] session expire value fetching
This commit is contained in:
parent
9eeb10dead
commit
94fd8bea42
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ class Session:
|
|||
webnotes.cache().set_value("session:" + self.sid, self.data)
|
||||
|
||||
def get_expiry_period(self):
|
||||
exp_sec = webnotes.defaults.get_global_default("session_expiry")
|
||||
exp_sec = webnotes.defaults.get_global_default("session_expiry") or "06:00:00"
|
||||
|
||||
# incase seconds is missing
|
||||
if len(exp_sec.split(':')) == 2:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue