Save last cursor location in session. Fix session saving