[php] Session unset, or session_destroy?

Possible Duplicate:
What is the difference between session_unset() and session_destroy() in PHP?

What is the best for security, and if the session is unset are load times better the next time the session has to accessed rather than recreated?

This question is related to php

The answer is


Something to be aware of, the $_SESSION variables are still set in the same page after calling session_destroy() where as this is not the case when using unset($_SESSION) or $_SESSION = array(). Also, unset($_SESSION) blows away the $_SESSION superglobal so only do this when you're destroying a session.

With all that said, it's best to do like the PHP docs has it in the first example for session_destroy().