Configuring production mode; fixing sessions for realz.