Look at the session.gc_maxlifetime value.
PS: Note that changing this may not help if other PHP session scripts with a shorter lifetime use the same directory for storing session data, in which case you may also need to set up a separate session data directory and have your site's settings point to it via the session.save_path setting.