bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
318 stars 111 forks source link

Infinite session lifetime #109

Closed SMakhrov closed 1 year ago

SMakhrov commented 3 years ago

Good day!

Could you tell how can I set infinite session lifetime? As I have found at code the default value is 3600 = 60m. But how to set infinite value?

bungle commented 3 years ago

By definition sessions are infinite as long as you use it. You can also set to very large value, which is more or less infinite when it comes to practical purposes.

bungle commented 3 years ago

Google says: (10^307) seconds = 3.16887646 × 10^299 years. I bet nobody uses this library by then.

bungle commented 1 year ago

4.0.0 you an turn things off by setting e.g. *_timeout=0