From 2d769a83cedd5c7e4dd399bf6360ebab3ddf29e7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 27 Mar 2014 14:43:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/session_delete.php | 46 ------------------------------------------ 1 file changed, 46 deletions(-) delete mode 100644 adm/session_delete.php diff --git a/adm/session_delete.php b/adm/session_delete.php deleted file mode 100644 index 35c8b8419..000000000 --- a/adm/session_delete.php +++ /dev/null @@ -1,46 +0,0 @@ -
"; -echo ""; -include_once("./admin.tail.php"); -flush(); - -$session_path = "$g5[path]/data/session"; // 세션이저장된 디렉토리 -if (!$dir=@opendir($session_path)) { - echo "세션 디렉토리를 열지못했습니다."; -} - -$cnt=0; -while($file=readdir($dir)) { - - if (!strstr($file,'sess_')) { - continue; - } - - if (strpos($file,'sess_')!=0) { - continue; - } - - if (!$atime=@fileatime("$session_path/$file")) { - continue; - } - if (time() > $atime + (3600 * 6)) { // 지난시간을 초로 계산해서 적어주시면 됩니다. default : 6시간전 - $cnt++; - $return = unlink("$session_path/$file"); - echo "\n"; - - flush(); - - if ($cnt%10==0) - echo "\n"; - } -} -echo "\n"; -?> \ No newline at end of file