Yep well basically what I see if that the session_id cookie is not there after you close your browser and come back directly to the browser. What it means is the sessions never match so checkpass never equals 1. The only other way cpaccess equals 1 is on login matching passwords so it is vital that the sessions match. What is funny is except for the altered queries and password structure the file is almost identical to ib.php. I found if you go to the forums the session_id is rewritten and your logged into Photopost fine.
So what I did is this
elseif ( $member_id && !$session_id ) {
Basically what that is saying is if member_id cookie exists and session_id does not delete their session and rewrite the session and create a session cookie.
THUS CHECKPASS EQUALS 1