예제 #1
0
파일: so_user.php 프로젝트: nin-jin/hyoo.ru
 function key_make()
 {
     $cookie = so_cookie::make('so_user_key');
     $key = $cookie->value;
     if (!$key) {
         $key = so_crypt::generateKey();
         $cookie->value = $key;
     }
     return $key;
 }
예제 #2
0
 function get_key($key)
 {
     if (isset($key)) {
         return $key;
     }
     $cookie = so_cookie::make('so_user_key');
     $key = $cookie->value;
     if (!$key) {
         $key = so_crypt::generateKey();
         $cookie->value = $key;
     }
     return $key;
 }