ColinHarbut Posted March 5, 2007 Share Posted March 5, 2007 http://calpropertysearch.com/account-login.php Hi, at the above addres, Im getting this line in my browser window : Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/www/users/charbut/calpropertysearch/account-login.php:9) in /usr/www/users/charbut/calpropertysearch/login.php on line 2 Can you tell me what I remove in login.php or account-login.php to prevent that error? Line 2 of login.php is: session_start(); When I remove it I can no longer login to any accounts, but the error doesn't appear at the top of the page! What do I do? Thanks Link to comment https://forums.phpfreaks.com/topic/41184-header-problem/ Share on other sites More sharing options...
pocobueno1388 Posted March 5, 2007 Share Posted March 5, 2007 Can we see the code to both of those pages? Link to comment https://forums.phpfreaks.com/topic/41184-header-problem/#findComment-199531 Share on other sites More sharing options...
fert Posted March 5, 2007 Share Posted March 5, 2007 you can't have any code before session_start() Link to comment https://forums.phpfreaks.com/topic/41184-header-problem/#findComment-199534 Share on other sites More sharing options...
ColinHarbut Posted March 5, 2007 Author Share Posted March 5, 2007 Its too long to paste. You can view the source for the documents at: http://calpropertysearch.com/account-login.php and http://calpropertysearch.com/login.php "account-login.php" is essentially the template thanks Link to comment https://forums.phpfreaks.com/topic/41184-header-problem/#findComment-199536 Share on other sites More sharing options...
ColinHarbut Posted March 5, 2007 Author Share Posted March 5, 2007 fert can you tell me what to do with this? <?php <br /> session_start(); require_once('Connections/myconn.php'); ?> <?php // *** Validate request to login to this site. thanks Link to comment https://forums.phpfreaks.com/topic/41184-header-problem/#findComment-199538 Share on other sites More sharing options...
mmarif4u Posted March 5, 2007 Share Posted March 5, 2007 Remove space. Like: <?php session_start(); require_once('Connections/myconn.php'); ?> Link to comment https://forums.phpfreaks.com/topic/41184-header-problem/#findComment-199601 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.