session bug fix and persistent session for partials