View Single Post
Old July 20th, 2009, 06:02 PM
superfancy superfancy is offline
Registered User
Join Date: Jul 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

I figured out my problem. I forgot to convert my logout() method in my admin dahboard.php Contoller to use CI sessions.
function logout() {
		$this->session->set_flashdata('error', "you've been logged out!");
		redirect('welcome/verify', 'refresh');
Basically my CI session was never getting terminated as the logout() method was attempting to terminate the native PHP session. Live and learn. Kind of a noob mistake but I'm not the most experienced PHP guy.

Also if I could get PHP $_SESSION to work with my code I would rather use it for the sake of better security. So if anybody has any ideas about why PHP sessions are not working for me, I'm all ears. Thanks...