Getting array_keys (user/session ids).