C API: Create Notes session from HTTP credentials

I already posted this question in the ND6/7 forum, but without success. I am currently investigating about ways to create a “native” user session (similar to NotesSession) via C API if only the HTTP credentials are known. The physical ID files from the users are not available on the Domino server, where my application should run.

In C, it seems that a physical ID file is always required to open a session. The only workaround I found is to use the known credentials of a “technical user” (whose ID I have available and who is allowed to access the databases needed) to create a native session.

This way is suboptimal. In Java, I could create a NotesSession from a cookie built from HTTP credentials. Is this option also working with the C API? The SecToken API seems to provide some of the features, but I couldn’t find any sample code that demonstrates how to generate an LtpaToken an create a “real” session from that.

Are there other alternatives?

Thanks a lot in advance!