A PHP session can be destroyed using the sessions_destroy() function. It does not require any arguments and a single command can erase all session variables. If you’re looking to eliminate one session variable, you can use the unset() function . It will remove the session variable.
I am tired of extracting each variable posted by the FORM. weather its a $_GET or $_POST or $_PUT. I always wondered How can I extract all variables from request, especially $_POST?
Normally, I do
to see the contents in the $_POST variable. then extract them each one line at a time. which is , in some cases a big waste of time.
Easiest Method I found was very easy:
his code answers his …