If the session is expiring you might need to update the max lifetime setting using the ini set function like this:
<?php
ini_set("session.gc_maxlifetime", "5400");
?>
This would set the max lifetime to 1.5 hours. Please give this a try by putting this code at the top of the page to see if it helps.