Try adding a sleep(2);
before issuing the redirect header; that'll tell you whether it's actually a bug in your code somewhere, or if the session data just isn't being written to file fast enough.
Brock Batsell
2010-03-08 23:50:31