While this is possible in C#: (User is a L2S class in this instance)
User user = // function to get user Session[\"User\"] = user;
why this
Try something like this?
StringWriter outStream = new StringWriter(); XmlSerializer s = new XmlSerializer(typeof(List>)); s.Serialize(outStream, myObj); cookie.Value = outStream.ToString();