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