BIG
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
}
?>
LIST
'!!...PHP > !!...CI4' 카테고리의 다른 글
CodeIgniter 4.x _008_Database.php sample (0) | 2023.01.09 |
---|---|
CodeIgniter 4.x _007_URL helper Sample (0) | 2022.11.10 |
CodeIgniter 4.x _005_BaseUrl 설정 (0) | 2022.11.02 |
CodeIgniter 4.x _004_DatetimeZone 변경 (0) | 2022.11.02 |
CodeIgniter 4.x _003_development mode activate (0) | 2022.10.24 |