SessionSerializer

interface SessionSerializer

Serializes session from and to String

Functions

deserialize

abstract fun deserialize(text: String): Any

Deserializes a complex arbitrary object from a String.

serialize

abstract fun serialize(session: Any): String

Serializes a complex arbitrary object into a String.

Inheritors

SessionSerializerReflection

class SessionSerializerReflection<T : Any> : 
    SessionSerializer

Default reflection-based session serializer that does it via reflection. Serialized format is textual and optimized for size as it is could be transferred via HTTP headers or cookies