I am new to classic ASP, and I need to encode the web application in classic asp because the client wants it to be in classic asp. :(
Anyway! here is my question:
When I have a class object called person:
Class Person
Private m_sFirstName
Public Property Get firstName
firstName = m_sFirstName
End Property
Public Property Let firstName(value)
m_sFirstName = value
End Property
End Class
set aPerson = new Person
Person.firstName = "Danny"
set Session("somePerson") = aPerson
So far so good ...
In the following query, I try to read the var session as follows:
If IsObject(Session("aPerson")) = true Then
set mySessionPerson = Session("aPerson")
Response.Write(TypeName(myTest))
Response.Write(mySessionPerson.firstName)
End If
Any ideas on what is going on will be very helpful.
Danny
source
share