hi,
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /d1/wb/dssvc/buynet/vendor/register_success.php:19) in /d1/wb/dssvc/buynet/vendor/register_success.php on line 133
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /d1/wb/dssvc/buynet/vendor/register_success.php:19) in /d1/wb/dssvc/buynet/vendor/register_success.php on line 133
these are my errors. there is nothing on line 19, i don't know why it is complaining about it. line 133 is where i do the session_start() call. what's up?
i am working on some php 4.3 that uses sessions. the website has to work with or without cookies enabled, so i use enable_trans_sid is On, and i pass around the PHPSESSID when i use forms with POST. i pretty much have it all working, a user can log in, access protected areas on the site that only logged in members can access, etc.
BUT i have a 'new registration' page that automatically logs a user out (if they were logged in as a different user, otherwise there is no reason to log them out) and lets them create a new user profile. on the 'success' page i am writing code to manually log them in. after they log in they can click a form submit button that will take them to another area of the site, which is a protected area.
i am having problems when cookies are enabled. i get the error messages, even though the user does become logged in and they are able to browse the site just fine after seeing this message...
when cookies are disabled i get no messages and everything works fine.
-c