I am building an application with KrakenJS 1.0 and I do want to disable sessions.
In case you are wondering what I am doing that for: I really want to disable sessions for the sake of it. I do not want to have session handling. I do not want to have a session cookie. Nor anything else that remotely has to do with sessions.
I do not want my node process to waste a single cpu cycle on managing sessions when handling a request. I do not want a single byte of memory to be used for creating a session.
How can I disable sessions? By default kraken is creating a session with connect. How can I disable session management completely?
UPDATE
Right now I do req.session = null
when handling a request. No session cookie is sent now. I do however think that Kraken still creates a session internally (though req.session = null
destroys it immediately).