Page 1 of 1

Compressing an object for session

Posted: Sat Jan 04, 2003 5:11 pm
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?

Posted: Sat Jan 04, 2003 8:18 pm
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

Posted: Sun Jan 05, 2003 3:58 pm
by hob_goblin