title: Removing objects form serialize data
body: <p>I am trying to integrate two PHP scripts (app1, app2) and I am trying to get session data from app1 in app2. </p>
  
  <p>The problem is when I am trying to <code>unserialize</code> the session data from app1 I am getting a small ton of errors because PHP is trying to find the <code>__wakeup()</code> function for each of the objects.</p>
  
  <p>I can't use the <code>unserialize_callback_func</code> fix because app2 use it so its already set and can't be changed.</p>
  
  <p>I don't need any data in the objects, is there some-way I can just remove the objects so they wont cause any problems?</p>