Php users quit. I registered and logged in. I don't know how to quit? Could you give me a detailed exit program? thanks ------ solution ------------------ $ _ SESSION [user] lowell; session_unset (); session_destroy (); ------ solution ------------------ session_de php user quit
I registered and logged in. I don't know how to exit? Could you give me a detailed exit procedure? thank you.
------ Solution --------------------
$ _ SESSION ['user'] = 'lowell ';
Session_unset ();
Session_destroy ();
------ Solution --------------------
Session_destroy ();
$ _ SESSION = array ();
Unset ($ _ SESSION [$ val]);
SetCookie ($ var, $ val, time ()-3600 );
------ Solution --------------------
PHP code
Session_start (); session_destroy (); header ("Location: login. php ");
------ Solution --------------------
Include "comm. php ";
Session_destroy ();
Get_show_msg ("login. php", "log out ");
?>