benedmunds/CodeIgniter-Ion-Auth — pull request #197 by michaelbrooks (2012-04-24 17:42:13+00:00)
Title: Recreate session on logout so flash messages are preserved

Currently when logout() is called, the session is destroyed, which means that subsequent uses of flash data will not work properly.

By creating a new session after the old one is destroyed, flash data that is set after logout() can be used to show the logout_successful message.