我使用session传递一个xml对象  但是想取出来时却找不到了   为什么?

解决方案 »

  1.   

    我将它序列化出错了  我的xml是用simple_xml解析的 对象中包含对象 
      

  2.   

    将对象转化成xml再保存吧。看手册就知道了
    The value to be serialized. serialize() handles all types, except the resource -type. You can even serialize() arrays that contain references to itself. Circular references inside the array/object you are serializing will also be stored. Any other reference will be lost. 
      

  3.   

    贴出你的代码!把对象放到 session 中是不需要序列化的