dough boy Posted June 1, 2007 Share Posted June 1, 2007 Ok...I am having a noob moment. The site runs fine on one box (via domain), but when I setup the site on another box that uses an IP, the site "spins". So I started going line by line to figure out why. When I uncomment out the session_start(), the site loads perfect. When it is left in, the page just "spins" and nothing is loaded. Am I missing something? Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/ Share on other sites More sharing options...
per1os Posted June 1, 2007 Share Posted June 1, 2007 Add this before the session_start() line error_reporting(E_ALL); make sure you will get the errors displayed to the screen. Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266367 Share on other sites More sharing options...
dough boy Posted June 1, 2007 Author Share Posted June 1, 2007 I already had error reporting turned on, but I added your line immediately above it. It did not work. I uncommented out session_start(); and it spins. Put # in front of it, and the page loads. Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266376 Share on other sites More sharing options...
wildteen88 Posted June 1, 2007 Share Posted June 1, 2007 What you do you mean by "spins"? Do you mean the page continues to load and displays nothing? Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266386 Share on other sites More sharing options...
dough boy Posted June 1, 2007 Author Share Posted June 1, 2007 Yes. In Firefox the tab has the clockwise waiting circle and Loading... Then in the status bar it says Waiting for IP Address... Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266396 Share on other sites More sharing options...
taith Posted June 1, 2007 Share Posted June 1, 2007 more then likely... thats not your issue... put exit; after it... it'll prolly stop... then continue down the file again... Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266420 Share on other sites More sharing options...
dough boy Posted June 1, 2007 Author Share Posted June 1, 2007 Tried that and still nothing. I wonder if it has something to do with the box I am on. <?php # If Internet Explorer for exporting purposes need to change the Session Cache if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { session_cache_limiter("must-revalidate"); } # Start Session and the Session ID #session_start(); $_SESSION['id'] = session_id(); # Log user out if requested if($_GET['logout'] == 'y') { @session_destroy(); } ?> Again by removing the # from in front of session_start(); the page spins. As soon as I remove it, everything works hunky doory. Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266425 Share on other sites More sharing options...
MadTechie Posted June 1, 2007 Share Posted June 1, 2007 Well i tried it with #session_start(); and with session_start(); works both times... Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266500 Share on other sites More sharing options...
per1os Posted June 1, 2007 Share Posted June 1, 2007 <?php session_start(); // have you tried starting it here? # If Internet Explorer for exporting purposes need to change the Session Cache if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { session_cache_limiter("must-revalidate"); } # Start Session and the Session ID # $_SESSION['id'] = session_id(); # Log user out if requested if($_GET['logout'] == 'y') { @session_destroy(); } ?> Have you tried starting the session before the cache limiter ??? Quote Link to comment https://forums.phpfreaks.com/topic/53878-session_start-kills-page/#findComment-266504 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.