What kind of serialization uses PHP function session_set_save_handler's write function?
问题 I make use of session_set_save_handler(). It works fine. However, sometimes I need to alter user's session data. I simply expected that the session data passed to write function are internally created like this: serialize($_SESSION); But they are not. They have this slightly different format than simple PHP serialized data: user|a:24:{s:2:"id";s:2:"12";s:5:"email";s:19:...CUT...;}last_activity_time|i:1310535031;logged_everywhere|b:1; Anybody knows what kind of serialization is internally used