sailorproject / sailor

A Lua MVC Web Framework.
MIT License
921 stars 125 forks source link

sudden logout: session files are deleted after 10 minutes #164

Open d9k opened 6 years ago

d9k commented 6 years ago

conf.access_module.grant_time must be used as the session.setsessiontimeout() parameter at sailor startup. But it is called at the access module inside function access.grant(data,time) only.

So whenewer session.cleanup() is called session files older then 10 minutes are destroyed.

d9k commented 6 years ago

By the way, at web_utils/session.lua at the function M.load (id) file modification time must be updated to be prevent session.cleanup() too