Changeset 15078 for branches/feature-module-update/data/class/SC_Cookie.php
- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/data/class/SC_Cookie.php
r12157 r15078 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.