CodeIgniter 4.x _006_Cookie 설정

 

<?php
class Test extends BaseController
{

    public function func_test()
    {
        set_cookie(
            '[쿠키명]'
            , $value = '[쿠키값]'
            , $expire = '0'
            , $domain = '[도메인]'
            , $path = '/'
            , $prefix = ''
            , $secure = false
            , $httpOnly = false
            ,$samesite = 'Lax'
        );

    }// end function

}

?>