The usual way for us is to create a web application for the logic and very simple .asp page for your plugin which you register in the CMS as plugin.
The asp page then reads out those values from the asp.net session and calls the web application with that information.
If you need more info, please let me know.
Cheers
Jonas