[eluser]Colin Carter[/eluser]
Hello,
I'm not sure if I'm using unset_userdata() properly, but if I wanted to unset a number of session variables using an array unset_userdata() doesn't work.
For example:
Code:
$this->session->unset_userdata(array('name', 'data'));
doesn't unset the 'name' and 'data' session variables. This is, I believe, due to the line in unset_userdata() unsetting based on an array key not its value.
Code:
unset($this->userdata[$key]);
if I'm using unset_userdata() incorrectly please could you let me know how to use it. I read that it's been documented in svn but I couldn't find how to check it out.
Many thanks