cookie_encode & cookie_decode


/ Published in: PHP
Save to your folder(s)

This is a great way to save complex objects as cookie values. You can't just json_encode because commas are not legal in cookie values. Remember not to use this for anything too big because cookies have a 4KB limit.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.