Fedora Linux Support Community & Resources Center
Old 3rd March 2009, 06:28 AM
zackiv31 Offline
Registered User
Join Date: Apr 2006
Posts: 248
[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...
Reply With Quote

json, php, serialize, sessions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP serialize wont work? hiberphoptik Using Fedora 0 29th May 2008 05:08 PM
Locked SSH sessions. Sicily1918 Using Fedora 1 17th April 2007 04:28 AM
ssh Sessions deepblue Servers & Networking 1 21st March 2005 11:31 AM
how to run 2 KDE sessions metamp99 Using Fedora 1 22nd February 2005 03:57 PM

Current GMT-time: 13:29 (Friday, 22-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat