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
Post a Comment