看了看手册不是很明白,session本来是基于cookie的。session_set_save_handler是不是可以改变服务器端session的存储和读取方式。客户端的应该还是不能改变的吧。

解决方案 »

  1.   

    看手册吧。
    php的session是在服务器端的。
      

  2.   

    session_set_save_handler() sets the user-level session storage functions which are used for storing and retrieving data associated with a session. This is most useful when a storage method other than those supplied by PHP sessions is preferred. i.e. Storing the session data in a local database.这个函数是用于设置与session操作相关的处理函数的。
      

  3.   

    应该说
    session默认是基于cookie的
    session id通过http请求头的cookie项发送过来
    你也可以通过url,http实体(post数据)等把session id发送至服务器。