Microsoft KB Archive/246176
INFO: ASP Session Object Can't be Accessed by ISAPI DLLs
The information in this article applies to:
- Microsoft Internet Information Server 4.0
ISAPI filters and extensions do not have access to ASP intrinsic objects. This includes the ASP session object.
The ASP intrinsic objects, including the session object, are instantiated when Asp.dll processes an ASP page. When ISAPI filters and extensions run, the intrinsic objects for a given session do not exist. For this reason, it is not possible for an ISAPI DLL to access information stored in a session object.
<% Response.Cookies("VisitorID") = 49 %> <%= Request.Cookies("VisitorID") %>
This can also be accomplished in an ISAPI DLL as described in the following Microsoft Knowledge Base article:
Q168864 Implementing Cookies in ISAPI
It is also possible to share information between ASP and ISAPI by passing arguments along with the requested URL, resulting in a GET request:
MSDN - "Managing Sessions"
Additional query words:
Keywords : kbASP _IK kbISAPI kbISAPI400 kbGrpDSInetServer _IK kbiis400
Issue type : kbinfo
Technology : kbiisSearch kbiis400
Last Reviewed: February 11, 2000