Session not maintaining for the first time

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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Session not maintaining for the first time

Post by Christopher »

When you redirect, you are still within the same HTTP session. So you may need to do a manual write close before the redirect because PHP only writes the session data at the end of the request.

http://us.php.net/manual/en/function.se ... -close.php
(#10850)
Post Reply