sailorproject / sailor

A Lua MVC Web Framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sudden logout: session files are deleted after 10 minutes

d9k opened this issue · comments

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.

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