Has anyone ever attempted to implement "lazy sessions" in CakePHP? I tried googling it and came up with zero. I'm interested in attempting it, and wondered whether it may be something that we could possibly implement into Cake 3 (is there a release time-frame for that yet?).
What I mean by "lazy sessions" is that a session cookie is not sent to the client if you're simply attempting to READ from the session, only when you WRITE to it. This means that anonymous users on your site don't get the cookie, and it's easier to cache those pages with Varnish or whatever else. When a user logs in, they get a session cookie, and then those pages may be individualised.
This StackOverflow question discusses it somewhat: