sam_khan Posted February 18, 2010 Share Posted February 18, 2010 hi in a project that i am doing i keep on getting the following error Warning: session_start() [function.session-start]: Cannot send session cookie its a login screen of the portal. Quote Link to comment https://forums.phpfreaks.com/topic/192481-session-start-error/ Share on other sites More sharing options...
sader Posted February 18, 2010 Share Posted February 18, 2010 function session_start() must be called before any output even empty space will lead to errors <?php session_start(); ?> <!DOCTYPE ...> Or maybe your cookies are disabled? Quote Link to comment https://forums.phpfreaks.com/topic/192481-session-start-error/#findComment-1014200 Share on other sites More sharing options...
sam_khan Posted February 18, 2010 Author Share Posted February 18, 2010 i m using netbeans to code the phpfiles. and the code was working fine yesterday. i m using subversion, and all the files are in green, instead of black as they normally are Quote Link to comment https://forums.phpfreaks.com/topic/192481-session-start-error/#findComment-1014203 Share on other sites More sharing options...
PFMaBiSmAd Posted February 18, 2010 Share Posted February 18, 2010 Read the error message. The error message tells you where the output is occurring at that is preventing the session_start/header from working. You must find and fix whatever is causing that output and since you did not bother posting the whole error message or the code where the output is occurring at, no one here can directly help you fix the problem in your code. Quote Link to comment https://forums.phpfreaks.com/topic/192481-session-start-error/#findComment-1014293 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.