sailorproject / sailor

A Lua MVC Web Framework.
MIT License
926 stars 123 forks source link

one session in xavante for all users #168

Open d9k opened 6 years ago

d9k commented 6 years ago

I got the weird bug with xavante:

one session for all site users due to cached sailor.access and sailor.session modules.

session data is stored at the session variable and is remained between requests If I don't confuse.

d9k commented 6 years ago

I added these lines to sailor.launch() for temporary solution:

  package.loaded['sailor.cookie'] = nil
  package.loaded['cgilua.cookies'] = nil
  package.loaded['sailor.access'] = nil
  package.loaded['sailor.session'] = nil
  package.loaded['web_utils.session'] = nil