2
votes

I don't know if it's possible, but suppose you want to handle reading/writing of cookies on a classic ASP page from a COM object. The COM object is written in .net and wrapped with a COM interface to make it accessible from classic ASP.

For clarification - my question is this:

Is it possible to access the ASP context inside a .net assembly wrapped with a COM interface, when you access it from a classic ASP Page like this:

Set controller = Server.CreateObject("MyNameSpace.MyClass")
my cookievalue = controller.GetSpecialCookieValue()

This example is an example of accessing the httpcontext's cookie information.

1
See my answer to a another asp-classic question here. - AnthonyWJones

1 Answers

1
votes

I guess you will need to reference Microsoft Active Server Pages Object Library.

See if this helps.
IMO, you should not set cookies from COM component.