Changeset 22567 for branches/version-2_12-dev/data/class/SC_Cookie.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Cookie.php
r22206 r22567 26 26 * 27 27 */ 28 class SC_Cookie { 28 class SC_Cookie 29 { 29 30 30 31 var $expire; 31 32 32 33 // コンストラクタ 33 function __construct($day = COOKIE_EXPIRE) { 34 function __construct($day = COOKIE_EXPIRE) 35 { 34 36 // 有効期限 35 37 $this->expire = time() + ($day * 24 * 3600); … … 37 39 38 40 // クッキー書き込み 39 function setCookie($key, $val) { 41 function setCookie($key, $val) 42 { 40 43 setcookie($key, $val, $this->expire, ROOT_URLPATH, DOMAIN_NAME); 41 44 } … … 46 49 * EC-CUBE をURLパスルート以外にインストールしている場合、上位ディレクトリの値も(劣後ではあるが)取得する点に留意。 47 50 */ 48 function getCookie($key) { 51 function getCookie($key) 52 { 49 53 return isset($_COOKIE[$key]) ? $_COOKIE[$key] : null; 50 54 }
Note: See TracChangeset
for help on using the changeset viewer.