Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7960759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:50:46+00:00 2026-06-04T04:50:46+00:00

All pages that have session_start() on the page have suddenly stopped loading and it’s

  • 0

All pages that have session_start() on the page have suddenly stopped loading and it’s been working for years like this. Even the host is unsure of what to do, looking for advise.

A sample test page with the following code also failed:

error_reporting(1);
if(!$_REQUEST['disable']=="yes")
{

session_start();
}
echo "hello";

If I call the page without passing the parameters ?disable=yes the page doesn’t load, it just hangs processing

The site is hosted along with 2 other sites on the server, the other 2 don’t have any issues, it’s just this one site that has all of a sudden started acting like this [no code has been changed on the site for 2+ months now].

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:50:47+00:00Added an answer on June 4, 2026 at 4:50 am

    Ok I found the issue!

    And guess what, it’s not even related to sessions! Although quite surprising that mysql can cause such issues with sessions.

    So what happened:

    I have a master DB server and a replication slave DB set up. Most of the pages in my server were trying to connect to the slave and if the slave failed, it would connect to the master. However, for some strange reason [which I haven’t figured yet], the mysql_connect to the slave db just hung without timing out and this in turn, for some odd reason, wouldn’t allow any other page which had session_start() to load!

    Now I am not sure as to why this would have such a side-effect on all other pages but I had to disable my slave server, routing all my queries only to the master and then cleared my browser cache before I could access the site again.

    So a mysql_connect to a db that doesn’t work or cannot be connected to [and with the mysql_connect not timing out], it can cause issues with any other page on your server from loading – even a simple 4 line page that I have put in my question above, a page that doesn’t even call the DB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an intermediary class extending System.Web.UI.Page for all of my pages that require
I have a index.php page that is the main page. All pages are included
I have a Pages table that stores all my view urls and this table
I have my own routing rules in routes.php, defined for all the pages that
I have defined CSS in MasterPage so that all pages can use the same
I have a js file that is loaded for all pages which contains a
I have a static_controller that is in charge of all the static pages in
I have a work page that shows all projects. I am using a taxonomy
I have a Test Class, that test the access of all page with different
I have an application that has been working with session variables no problem. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.