Issue #2437761 by Dom., znerol: CSRF token seed and possibly other session data lost when set after a session regenerate