On Mon, Dec 5, 2016 at 12:31 PM, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:
> The RFC allows to save session data in whatever format. e.g.
> XML/JSON/BSON/etc. This is _impossible_ by save handler submodule.

I've never tried, but it would be possible technically.
The code wouldn't be clean code, though.

With this RFC, JSON session serializer could be

session_set_serializer(
  function ($input_array) {
    return json_encode($input_array);
  },
  function ($input_string) {
    return json_decode($input_string);
  }
);
// User may use "interface" alternatively.

--
Yasuo Ohgaki
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to