source: temp/trunk/data/class/SC_Cookie.php @ 1328

Revision 1328, 380 bytes checked in by naka, 20 years ago (diff)

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2/*¡¡Æü»þɽ¼¨ÍÑ¥¯¥é¥¹ */
3class SC_Cookie {
4   
5    var $expire;
6   
7    // ¥³¥ó¥¹¥È¥é¥¯¥¿
8    function SC_Cookie($day = 365) {
9        // Í­¸ú´ü¸Â
10        $this->expire = time() + ($day * 24 * 3600);
11    }
12   
13    // ¥¯¥Ã¥­¡¼½ñ¤­¹þ¤ß
14    function setCookie($key, $val) {
15        setcookie($key, $val, $this->expire, "/", DOMAIN_NAME);
16    }
17   
18    // ¥¯¥Ã¥­¡¼¼èÆÀ
19    function getCookie($key) {
20        return $_COOKIE[$key];
21    }
22}
23?>
Note: See TracBrowser for help on using the repository browser.