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 6777419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:08:43+00:00 2026-05-26T16:08:43+00:00

When I try to load two of the same page from my server in

  • 0

When I try to load two of the same page from my server in different tabs of the same browser, it waits for one to finish before starting the other. This is fine but I have a cron process which needs to call several calls to the same script and I can’t have this type of blocking behavior. I think it is because the process has the same session/connection with the server and the default behavior is to only allow one request at a time from the same source… how can I get around this? What I want to be able to do is have a cron process be able to fire off calls to one of my scripts and apache spin up a new instance of the targeted script to handle the request for each one. Is this possible?

  • 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-05-26T16:08:44+00:00Added an answer on May 26, 2026 at 4:08 pm

    Are you using PHP’s standard file-based sessions? PHP locks the session when you do a session_start() and keeps the file locked until the script exits, or you do a session_write_close().

    This has the effect of preventing any OTHER session-enabled pages from being served up, as they can’t get at the session file until the lock is removed.

    session_write_close() can be called at any point in the script. All it does is write out the _SESSION array as it is at that moment, but leaves the array available for reading. You can always re-open the session later on the script if you need to make any modifications.

    Basically, you’d have

    <?php
    
    session_start(); // populate $_SESSION;
    session_write_close(); // relinquish session lock
    
    .... dome some really heavy duty long computations
    
    session_start();
    $_SESSION['somekey'] = $new_val;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to use two different jqgrid on the same page with the mvc
when i try to do this and load the webforms page, i get this
I am assigning ViewState[something] in Page Load of content page and when I try
Hi I want to set opacity for a form in page load. I try
I have two methods that do the same thing. The first one makes performance
In a single page I load two external contents into two div (ie. #div1,
In my page i'm trying to show two images which have the same id.
I want to load two assemblies from C++/CLI; assembly A depends on assembly B,
I'm using a piece of JS twice for two, different yet the same, events.
I am using Ninject to load several modules. When two modules try to bind

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.