session.endSession() implemented