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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -