PHP process does not close

Hi there -

I recently had somebody make some changes to some checkout code on my custom-coded website and I now find that I get lots of warnings from my firewall regarding php processes remaining open for hours or days like the following, which has been active for about 12 hours -

Time: Mon Jan 30 21:34:58 2012 -0500
Account: mrk
Resource: Process Time
Exceeded: 45308 > 1800 (seconds)

  • Hide quoted text -
    Executable: /usr/bin/php
    Command Line: /usr/bin/php /home/mrk/public_html/whois_output.php
    PID: 32690
    Killed: No

This page is simply a page which will display the output from a whois query and show the user some options. If the user wishes to purchase services, that user would then be able to proceed to checkout.

I am guessing that this issue is caused by sessions remaining open that are probably not being closed, but as much googling as I’ve done, I can’t seem to validate that I am correct in that assumption. Hence my post here.

Below are the session open lines of code for the whois page of my site.

[php]session_start();
header(“Cache-control: private”);
$session = session_id();[/php]

Again, I did not get these warnings before having somebody recently do some editing of the checkout code, so I am thinking that the session must have previously been closed there and is not not being destroyed after checkout, but not sure how to properly diagnose.

Advice would be much appreciated.

Thanks.

Mike

Can you find out what the change(s) were? Use a diff tool.

Sponsor our Newsletter | Privacy Policy | Terms of Service