save session to kvs