Welcome Guest, Not a member yet? Register   Sign In
Illegal offset type in unset (Session.php - Line 727)
#1
Question 

Got a lot of warnings in my log with:
PHP Code:
SeverityWarning --> Illegal offset type in unset C:\var\data\localweb\gv\system\libraries\Session\Session.php 727 
What is it?
Reply
#2

What do you try to unset from session ?
The Key must be string or array of strings. Its most likely that you have send either NULL or other type which can't be unset ..
Best VPS Hosting : Digital Ocean
Reply
#3

(04-03-2015, 09:55 AM)sv3tli0 Wrote: What do you try to unset from session ?
The Key must be string or array of strings. Its most likely that you have send either NULL or other type which can't be unset ..

That's right.
Doing a $this->session->unset_userdata($data); where $data array contains keys that doesn't exist, throw this warning.

Thanks a lot! Big Grin
Reply




Theme © iAndrew 2016 - Forum software by © MyBB