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

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -