scripting - PHP - Does session_unset unregister $_SESSION vars? -


Does all $ _SESSION unregistered works, or do you manually add variables registered in the $$$$ CRSAR To clean?

I am confused about it because the PHP documentation says:

Use session_unset () for old old dislike code which does not use $ _SESSION .

If $ _SESSION is used, a session variable

Yes, it removes all sessions.

session_unset - Free All Session Variables

Vars, you can also use it to remove all sessions:

  session_destroy ();  

Sometimes you may have a problem, even if session_unset and session_destroy are both used. You have to clean the $ _SESSION array.

  session_unset (); Session_destroy (); $ _SESSION = Array ();  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -