|
Yes, if you want to destroy the session completely, then it is necessary to empty the session before using session_destroy();. Because, session_destroy() does not destroy global variables, so if you are using any global variables while your session is on, then it will not be removed using session_destroy();. So it is better to empty the session before destroying it.
|