IIS 6.0

The ISessionObject::putref_Value method stores a COM Automation object in the Session Object object. Equivalent to put_Value for non-COM objects.

HRESULT putref_Value(
   BSTR bstrValue,
   VARIANT var


[in] A binary string that contains the new variable name.


[in] A VARIANT to store in the variable.

Before you store an object in the Session object, you should know what threading model it uses. For more information, see Setting the Scope of COM Objects in ASP Pages. For code examples of COM components that can be called from ASP, see Creating COM Components for ASP.

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS