Session lifetime fix