is user login or logout?
Yes session is destroyed automatically after inactivity of 24 minutes by default.
So in your case if user is active session will not get out.
Still if you want to increase your session inactivity time you can use:
ini_set('session.gc_maxlifetime', 3600);