Added a Session::setLifetime() method, fixed a missing return value.