Changeset 15609 for branches/feature-module-update/data
- Timestamp:
- 2007/09/05 14:15:21 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/SC_Cookie.php
r15532 r15609 6 6 */ 7 7 8 /* 8 /* 日時表示用クラス */ 9 9 class SC_Cookie { 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 10 11 var $expire; 12 13 // コンストラクタ 14 function SC_Cookie($day = 365) { 15 // 有効期限 16 $this->expire = time() + ($day * 24 * 3600); 17 } 18 19 // クッキー書き込み 20 function setCookie($key, $val) { 21 setcookie($key, $val, $this->expire, "/", DOMAIN_NAME); 22 } 23 24 // クッキー取得 25 function getCookie($key) { 26 return $_COOKIE[$key]; 27 } 28 28 } 29 29 ?>
Note: See TracChangeset
for help on using the changeset viewer.