shinyauthr
shinyauthr copied to clipboard
How can I set the cookie expiration time to 30 minutes?
We all known cookie expiration is count by days, if I want to set it count by minutes what should I do guys?
Hello,
I believe this to be possible by slightly modifying the last line in the function "get_sessionids_from_db()" i.e:
From:
filter(login_time > now() - days(expiry))
To:
filter(login_time > now() - minutes(expiry))
With the updated function, using get_sessionids_from_db(..., expiry = 30) will treat cookie expiry as 30 minutes.