Fixed some session issues behind a proxy