Loading new configuration clears old sessions.

[ fix #2961 ]