code: def confirm_login():
      '''
      This sets the current session as fresh. Sessions become stale when they
      are reloaded from a cookie.
      '''
      session['_fresh'] = True
      session['_id'] = current_app.login_manager._session_identifier_generator()
      user_login_confirmed.send(current_app._get_current_object()f confirm_login():
      '''
      This sets the current session as fresh. Sessions become stale when they
      are reloaded from a cookie.
      '''
      session['_fresh'] = True
      session['_id'] = current_app.login_manager._session_identifier_generator()
      user_login_confirmed.send(current_app._get_current_object())
docs: This sets the current session as fresh. Sessions become stale when they
      are reloaded from a cookie.