Sessions with pcgi files

There is a single page on my site that absolutely must use my compiled version of php. I use sessions on my site for the shopping cart. I need to integrate the pcgi page with the rest.

There is an old forum posting here:
That talks about combining sessions across both file types.

Here is the thing I don’t understand. It works if - two php pages load first. It doesn’t work if - only one php page loads before the pcgi page, or if the pcgi page is the first page viewed, regardless of the number of times the pcgi page is loaded.

The php pages work fine the first time they are loaded.

Does anyone have any ideas why this may be?