Adding session cookie example and setting the expire time