Ensure that sessionsave input is the correct type
Merge branch 'session-cleanup'

* session-cleanup:
  Ensure that sessionsave input is the correct type