CDF bundle session

Hi

In a project I am working on, we are using the CDF bundle for user management and authentication. I am calling an API for AD authentication and I want to manage custom session(Overwrite CDF session) for AD-authenticated users.