[SOLVED] serialized objects in a rediect

Hi Folks,

a beginners question - but what is best practice for passing large models around in redirects?

For example - if I were to do something like this:




$this->redirect(array('controller/action','example1'=>$serializedArray, 'example2'=>$serializedObject),true);



The redirect method will try to treat example1 and example2 as name value GET parameters, but if the serialized object gets too large (too many characters) you’ll start to get a 403 forbidden error when you perform the redirect.

So my question is, what’s the best way to pass large serialized objects to controllers from a redirect. Any opinions would be welcome.

regards,

Rob.

In most cases: CHttpSession .

Ok thanks for the info Phtamas :)