kohana/core — pull request #182 by parshap (2011-11-23 09:02:43+00:00)
Title: Session data serialization

I recently needed to override how session data is serialized to store it as JSON-encoded strings (for interoperability). I found this difficult to do as the serialization (and "encoding") calls were tightly coupled with the `Session#read` and `Session#__toString` methods. The changes I've made here make this much easier to do.

I know it's yet another layer of function calls - but it should only be 4 calls per Session instance (internal requests not included ... i.e., 4 additional calls per request).

If this is deemed valuable, I can create the associated Redmine ticket.