fixed session interval calculation

use the minimum of configured session_livetime and session.gc_maxlifetime for session heartbeat interval calculation

If session_livetime is explicit configured and at least 2 times largen that session.gc_maxlifetime a wrong session refresh interval is calculated.