In page number one I have this:

<code>
<%
class hola
public a
end class
dim obj
set obj=new hola
obj.a="a"
set session("obj")=obj
%>
</code>

in page number two I have this
<code>
<% set obj=session("obj")%>
<%=obj.a%>
</code>

and In the page number two I get this error:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'a'

/p2.asp, line 10



My question is: what is the proper way to save objects in the session object? My objects are small so I dont think I will habe problems with the memory at server. Thank you very much!