Storing objects in session

Hi guys,

I noticed this item on the change logs for the RemObjects SDK:.

64522: Olympia: Allow to store arbitrary objects in the session

Does this means we can now store any kind of object on the session and it will be serialized/deserialized and stored for us on the sessions?

If thats the case, how do we do this? is there a casting? session[“xxx”] used to take a variant, is there any new syntax?

Thank you in advance.

Hello

This change applies only to the RemObjects SDK for .NET.

Data types that can be stored in an Olympia session are:

  • Primitive values:
  • Binary
  • Boolean
  • Byte
  • Currency
  • DateTime
  • Decimal
  • Double
  • Guid
  • Int8
  • Int16
  • Int32
  • Int64
  • String
  • Classes inherited from the ComplexType class. In this case methods ComplexType.ReadComplex and ComplexType.WriteComplex are used to serialize/deserialize data
  • All .NET classes marked with the Serializable attribute. In this case .NET serialization facility will be used
  • Arrays of types listed above