Initial commit
[2ch-be.git] / dev-test / logout.php
blobac9cae28762b42091d8605a70824c43fad518065
1 <?php
2 session_start();
3 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
4 setcookie('DMDM',"",time()-3600,"/",".2ch.net");
5 setcookie('MDMD',"",time()-3600,"/",".2ch.net");
6 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
7 setcookie('DMDM',"",time()-3600,"/",".bbspink.com");
8 setcookie('MDMD',"",time()-3600,"/",".bbspink.com");
10 //setcookie('DMDM',"",time()-3600,"/",".2ch.net");
11 //setcookie('MDMD',"",time()-3600,"/",".2ch.net");
12 session_destroy();
13 header('location:login.php');