Welcome Guest, Not a member yet? Register   Sign In
[Session] unset_userdata varargs
#1

[eluser]Unknown[/eluser]
Hello all,
I thought that unsetting multiple Session variables is a bit awkward, and patched the trunk (REV 1599) to support varargs in that method (PHP does varargs since 4).
The function call would then be
Code:
$this->session->unset_userdata('this', 'that');

The usual method of unsetting multiple items still works, so it should be possible to use the patched version of system/libraries/Session.php with an existing CI 1.7 installation

The attached file is the output of `svn diff` from the trunk directory




Theme © iAndrew 2016 - Forum software by © MyBB