addd cookie session and a bit of code for KiwiAuthManager