code: def gen_lt(self):
          
          self.request.session['lt'] = self.request.session.get('lt', []) + [utils.gen_lt()]
          if len(self.request.session['lt']) > 100:
              self.request.session['lt'] = self.request.session['lt'][-100:]
docs: Generate a new LoginTicket and add it to the list of valid LT for the user