sessions serialization format compatible with session_encode/session_decode