I have overridden Drupal’s login process by calling a REST API which returns a ‘true’ or a ‘false’ depending on whether the login was successful or not. Once successful, I’m logging the user in by using a particular Drupal user account.
Would it be possible to change Drupal’s Session ID to the one specified by the REST API call? Currently the REST API Call is giving me a JSESSIONID cookie and I was wondering if its possible to map this cookie to the one Drupal generates when the user logs in. Reason I need this is because I need keep track of this JSESSIONID to call other API methods related to the logged in user.