Compressing an object for session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zebrax
Forum Newbie
Posts: 16
Joined: Sat Sep 14, 2002 11:39 pm

Compressing an object for session

Post by zebrax »

I have an object that I am currently storing in a session. It is fairly large (16KB) so I would like to zip it or compress if before putting it in the session.
What function should I use after serializing the object?
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

if you have access to the Apache zlib module you could always have a run at this: http://www.php.net/manual/en/ref.zlib.php
Post Reply