[PHP] Use JSON for sessions instead of serialize()
I would much rather use json for my session storage in php, but it seems to default to the seriazlie() function of php.
Has anyone or does anyone know how to get php to default to using json_encode and json_decode instead of serialize() and unserialize() ?
I'm as far as noticing this directive in the php.ini:
session.serialize_handler = php
which seems to be where it gets its directive... but I tried to hack it by changing it to json, but that didn't work...