Just have this at the top of your first file:
<?php
$fp = fopen('sessions.log', 'w');
function session_killer($file, $line) {
global $fp;
fputs($fp, "Last Called from: $file on line $line\n");
}
?>
In each function you call, insert:
session_killer(FILE, LINE);
(Yes the FILE and LINE are php keywords).