src/Crypt/SecureCookie.php
public static function set($user_id, $userEmail, $context_id) {
        global $CFG;
        $ct = self::create($user_id,$userEmail, $context_id);
        setcookie($CFG->cookiename,$ct,time() + (86400 * 45), '/'); // 86400 = 1 day
    }
public static function set($user_id, $userEmail, $context_id) {
        global $CFG;
        $ct = self::create($user_id,$userEmail, $context_id);
        setcookie($CFG->cookiename,$ct,time() + (86400 * 45), '/'); // 86400 = 1 day
    }
public static function set ( $ user_id , $ userEmail , $ context_id ) { global $ CFG ; $ ct = self :: create ( $ user_id , $ userEmail , $ context_id ) ; setcookie ( $ CFG -> cookiename , $ ct , time ( ) + ( 86400 * 45 ) , '/' ) ; // 86400 = 1 day }
We have a user - set their secure cookie
We have a user - set their secure cookie