added Session::flush()
added a few methods.