session: new methods.

As method:
  - flush_caches

As property:
  - connection_state
  - userdata