liquid_feedback_frontend
changeset 1546:ae194d0235c2
Set session cookie only if session is needed
author | bsw |
---|---|
date | Thu Oct 22 11:57:23 2020 +0200 (2020-10-22) |
parents | 26a1ed6bc9df |
children | 7e2e6412b40e |
files | app/main/_filter/20_session.lua |
line diff
1.1 --- a/app/main/_filter/20_session.lua Thu Oct 22 11:52:15 2020 +0200 1.2 +++ b/app/main/_filter/20_session.lua Thu Oct 22 11:57:23 2020 +0200 1.3 @@ -51,7 +51,7 @@ 1.4 1.5 if not app.session then 1.6 app.session = Session:new() 1.7 - if not cors_request then 1.8 + if not need_session then 1.9 app.session:set_cookie() 1.10 end 1.11 end