[eluser]oddman[/eluser]
[quote author="Michael Wales" date="1211921511"]The userdata() method will return FALSE if a value is not assigned so you can do a bit of optimizing (rather than calling a function, on a method, which then must do some type casting to determine if FALSE == empty() or not). You can just do this:
Code:
if ($this->session->userdata('session_var') === FALSE) {
// Yay for optimization
} else {
// We got us a session var
}
[/quote]
ah very nice, Michael Wales educates me once again