session data implementation.
make session itself serializable.