Hello,
I've created an IHttpHandler
in .NET C# which returns pieces of html to a classic asp page.
The classic asp page communicates with the IHttpHandler
through basic http requests using ServerXMLHTTP
in vbscript or Ajax Calls in JavaScript.
Now, I need a way to share a variable which I have in vbscript but not in javascript with the .NET application.
The first bit, sharing a variable between classic asp and .net is not a problem as I can just add it onto the http request. Because the variable is not available in javascript however I can't do this in that case.
I had the idea that I could maybe cache the variable in the .NET application and use the cached version for javascript calls. But for this to work I would need a way to uniquely identify the "client" in .NET...
I tried to add System.Web.SessionState.IRequiresSessionState
to my HttpHandler and use the SessionId but this didn't work because every single call to the HttpHandler seems to get a new ID.
Am I thinking the right way? What are my options here?