Initial commit
[2ch-be.git] / logout.php
blob4d245f0c5cabc99f2c22d9ea7c322688a5aa8808
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');