javascript - In PHP, how to destroy session and close the window? -


i want close tab destroy sessions in php.

i have piece of code, doesn't work well.

<?php session_start(); session_destroy(); ?>  <script language="javascript">   settimeout("self.close();",10000)   </script> 

help through, thanks.

edit: doesn't close window expected.

function openwin() { mywindow=window.open("","","width=200,height=100"); mywindow.document.write("<p>this 'mywindow'</p>"); }  function closewin() { mywindow.close(); } 

Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -