Changeset 21624 for branches/version-2_12-dev/data/class/SC_Cookie.php
- Timestamp:
- 2012/03/11 15:22:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Cookie.php
r21514 r21624 22 22 */ 23 23 24 /* 日時表示用クラス */ 24 /** 25 * クッキー用クラス 26 * 27 */ 25 28 class SC_Cookie { 26 29 … … 35 38 // クッキー書き込み 36 39 function setCookie($key, $val) { 37 setcookie($key, $val, $this->expire, '/', DOMAIN_NAME);40 setcookie($key, $val, $this->expire, ROOT_URLPATH, DOMAIN_NAME); 38 41 } 39 42 40 // クッキー取得 43 /** 44 * クッキー取得 45 * 46 * EC-CUBE をURLパスルート以外にインストールしている場合、上位ディレクトリの値も(劣後ではあるが)取得する点に留意。 47 */ 41 48 function getCookie($key) { 42 49 return isset($_COOKIE[$key]) ? $_COOKIE[$key] : null;
Note: See TracChangeset
for help on using the changeset viewer.
