how would i do this with a url? anyone?
i want to have a url and make the person logout, would i use session_destroy() somehow?
😕
you would do this:
<?php // Initialize the session. // If you are using session_name("something"), don't forget it now! session_start(); // Unset all of the session variables. session_unset(); // Finally, destroy the session. session_destroy(); ?>