Fix session deletion issues

- Fix logout API
- Fix stale cache on deletion
- Fix row ID not being saved in cached list during session creation