ISAPI based HTTPAPI, ".SessionManager property is set to nil"

Hi RemObjects

I am trying to write an ISAPI dll version of a very well working standalone remobjects server. I am using Delphi 12 and RemObjects 10.0.0.1585

I have come quite far - however session handling really gives me problems. (using TROInMemorySessionManager)

My implementation TRORemoteDataModule(s) never seem to have a SessionManager assigned even though it is set in the form (or I try and set it in code)
resulting in the exception:
“The session has not been initialized. api_Login_Service.SessionManager property is set to nil.”

This no problem at all in the standalone server that I have.

If you could offer some help I would be grateful.
Thanks in advance
Christian

Hi,

this is known behavior for ISAPI dll.

workaround: set SessionManager manually in code like

procedure TDataService.DataAbstractServiceCreate(Sender: TObject);
begin
  Self.SessionManager := ServerDataModule.SessionManager;
end;

Thanks for the advice, I will definitely try this…

Regards
Christian