example to set session life time