Store config in session