basic caching of id during session