Clearing CodeIgniter session data
A question came up in the CodeIgniter forums today asking how to clear session data. After writing a big reply to answer I felt others might be interested in the various options too.
The most practical, yet least thorough is to unset specific bits of user data. This following code