Changeset 11730 for branches/comu/data/class/SC_Cookie.php
- Timestamp:
- 2007/03/11 06:27:25 (19 years ago)
- File:
-
- 1 edited
-
branches/comu/data/class/SC_Cookie.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/data/class/SC_Cookie.php
r11729 r11730 6 6 */ 7 7 8 /* 日時表示用クラス*/8 /*¡¡Æü»þɽ¼¨ÍÑ¥¯¥é¥¹ */ 9 9 class SC_Cookie { 10 10 11 11 var $expire; 12 12 13 // コンストラクタ13 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 14 14 function SC_Cookie($day = 365) { 15 // 有効期限15 // ͸ú´ü¸Â 16 16 $this->expire = time() + ($day * 24 * 3600); 17 17 } 18 18 19 // クッキー書き込み19 // ¥¯¥Ã¥¡¼½ñ¤¹þ¤ß 20 20 function setCookie($key, $val) { 21 21 setcookie($key, $val, $this->expire, "/", DOMAIN_NAME); 22 22 } 23 23 24 // クッキー取得24 // ¥¯¥Ã¥¡¼¼èÆÀ 25 25 function getCookie($key) { 26 26 return $_COOKIE[$key];
Note: See TracChangeset
for help on using the changeset viewer.
