i am using the following technique...
From the login.php the form posts to the page check.php where i do this
login.php
check.php
I would look at session_set_cookie_params and ini_set("session.gc_maxlifetime", "18000");
ini_set("session.gc_maxlifetime", "18000");