To set/check session life time