changes in session so it could be persisted and work in multiprocess server