sjbirk Posted February 4, 2007 Share Posted February 4, 2007 my code runs great unless i have session_start() at the beginning of the code. it errors at this line: $p = $s->getPage($_SESSION[Constant::VAR1]); has anyone seen this before? Link to comment https://forums.phpfreaks.com/topic/37057-errors-out-only-when-i-use-session_start/ Share on other sites More sharing options...
wildteen88 Posted February 4, 2007 Share Posted February 4, 2007 post the full error message(s) you are getting here. Also provide more code too. When you use session_start make sure you are not outputting anything to the browser. Link to comment https://forums.phpfreaks.com/topic/37057-errors-out-only-when-i-use-session_start/#findComment-176958 Share on other sites More sharing options...
only one Posted February 4, 2007 Share Posted February 4, 2007 put your session_start(); at the top of the page Link to comment https://forums.phpfreaks.com/topic/37057-errors-out-only-when-i-use-session_start/#findComment-176975 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.