setSid: expiration < 0  -> expired, 0 -> session lifetime, expiration > 0 -> normal expiry.