Fix for Session.sessconfig not being set properly