Rewrite Session/SessionManager