How can you use session_unset() to unset multiple pieces of sessions data?
[code=php]<?php session_unset($_SESSION[‘var1’], $_SESSION[‘var2’]); ?>[/code]
Would the above code to the trick, or would you need to use multiple session_unset() functions?
[code=php] // DO NOT DO THIS! unset($_SESSION); // This is OK: unset($_SESSION['some_index']); [/code]
Help @Joseph_Witchard spread the word by sharing this article on Twitter...