Ok, I must be doing something very simply wrong.
global.asa:
---------------------------------------------------------------------
<script language="vbscript" runat="server">
Sub Session_OnStart
Dim oProduct, sTemp
Set oProduct = New SampleProduct
sTemp = "ABC123"
oProduct.SKU = "ABC123"
oProduct.Name = "My Killer Product"
Set Session(sTemp) = oProduct
End Sub
Class SampleProduct
Public SKU
Public Name
End Class
</script>
---------------------------------------------------------------------
My asp code looks like this:
---------------------------------------------------------------------
Dim oMyProduct
Set oMyProduct = Session("ABC123")
Response.Write(oMyProduct.Name)
---------------------------------------------------------------------
All I get is:
---------------------------------------------------------------------
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Name'
/Testing.asp, line 14
---------------------------------------------------------------------
Am I retarded? What am I missing?
Thanks for any help.