Core/Security/Login/Autologin.php
public function createAutoLoginTokenAndCookie(int $id)
    {
        $authtok = new AuthToken($this->db);
        $authtok->setId($id);
        $authtok->setExpires($this->expires_after);

        setcookie($this->cookie_name, $authtok->generate(), $authtok->getExpiresTimestamp(), '/');
    }
public function createAutoLoginTokenAndCookie(int $id)
    {
        $authtok = new AuthToken($this->db);
        $authtok->setId($id);
        $authtok->setExpires($this->expires_after);

        setcookie($this->cookie_name, $authtok->generate(), $authtok->getExpiresTimestamp(), '/');
    }
public function createAutoLoginTokenAndCookie ( int $ id ) { $ authtok = new AuthToken ( $ this -> db ) ; $ authtok -> setId ( $ id ) ; $ authtok -> setExpires ( $ this -> expires_after ) ; setcookie ( $ this -> cookie_name , $ authtok -> generate ( ) , $ authtok -> getExpiresTimestamp ( ) , '/' ) ; }
Set auto login cookies with user generated token

@param int $id
Set auto login cookies with user generated token