You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working with Dancer2 and Deferred for a project. I've noticed that Deferred seems to cause a session to be created for every visitor, even if no deferred message is shown.
This means that every visitor causes a session to be created. In my case it's Redis backed, so the session creation cost is small, and having a large number of sessions in Redis isn't a big burden. However, making a session for a user who (will probably) never need it, and (unless they're in a very small percentage of visitors) will never see a Deferred message seems rather wasteful.
This also causes me a slight issue with the EU cookie laws, in so much as when a visitor arrives at my site, I'll be setting a cookie (the session cookie) at the same time as I'm asking if it's okay to do so.
Is there a way Deferred could avoid creating the session, unless an actual 'deferred' call is made?
The text was updated successfully, but these errors were encountered:
I've been working with Dancer2 and Deferred for a project. I've noticed that Deferred seems to cause a session to be created for every visitor, even if no deferred message is shown.
This means that every visitor causes a session to be created. In my case it's Redis backed, so the session creation cost is small, and having a large number of sessions in Redis isn't a big burden. However, making a session for a user who (will probably) never need it, and (unless they're in a very small percentage of visitors) will never see a Deferred message seems rather wasteful.
This also causes me a slight issue with the EU cookie laws, in so much as when a visitor arrives at my site, I'll be setting a cookie (the session cookie) at the same time as I'm asking if it's okay to do so.
Is there a way Deferred could avoid creating the session, unless an actual 'deferred' call is made?
The text was updated successfully, but these errors were encountered: