When I logout from the website i checked the static function logout () in the class.user.php after the session unset code there is no session destroy used. Why?
I'm looking forward to your answer
thank you
Printable View
When I logout from the website i checked the static function logout () in the class.user.php after the session unset code there is no session destroy used. Why?
I'm looking forward to your answer
thank you
While I cannot speak for the developers, my guess as to why is that prior to vShare 2.7, vShare used (and required) superglobals. Superglobals cannot be unset using session_destroy(). When vShare 2.7 was done, they likely just went with using just session_unset(), which clears out the values of the variables and never added a session_destroy(), which deletes the variables altogether, since they were already using session_unset() to unset the superglobals.
thanks for your answer bplex, I know what you told, and that's correct.
Forg4t