Accessing classic asp (http)context from a .net wrapped with COM interface?

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.

Upvotes: 2

Views: 1455

Answers (1)

shahkalpesh
shahkalpesh

Reputation: 33474

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.

Upvotes: 1

Related Questions