/** * Create session object and start the session. */ public function session_init() { parent::session_init(); // set initial session vars if (!$_SESSION['user_id']) { $_SESSION['temp'] = true; } // restore skin selection after logout if ($_SESSION['temp'] && !empty($_SESSION['skin'])) { $this->config->set('skin', $_SESSION['skin']); } }