example to check session life time