def core__create_superuser_session(superuser, lifetime)
      token = core__encode_token(lifetime, superuser_id: superuser.id)
      session[:lato_core__superuser_session_token] = token
    end
def core__create_superuser_session(superuser, lifetime)
      token = core__encode_token(lifetime, superuser_id: superuser.id)
      session[:lato_core__superuser_session_token] = token
    end
This function set a cookie to create the superuser session.