![]() |
error entering wrong login details - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: error entering wrong login details (/showthread.php?tid=18159) |
error entering wrong login details - El Forum - 04-27-2009 [eluser]learning_php[/eluser] Hi, I have been trying to use a login system from members only access. The system works when the user enter the correct details but if they get it wrong this happens: Code: A PHP Error was encountered Code: <?PHP Code: <?PHP error entering wrong login details - El Forum - 04-27-2009 [eluser]Dam1an[/eluser] Do you auto load the session library? error entering wrong login details - El Forum - 04-27-2009 [eluser]learning_php[/eluser] Yea Code: $autoload['libraries'] = array('database','session'); error entering wrong login details - El Forum - 04-28-2009 [eluser]TheFuzzy0ne[/eluser] I'm curious. You're using the session class, but apparently trying to use the native PHP sessions also. I'd highly recommend you stick to using $this->session->set_userdata() and $this->session->userdata(). I'm not sure if this will fix your problem, but I do know that mixing native PHP sessions with CodeIgniter's session class is usually a recipe for disaster. error entering wrong login details - El Forum - 05-18-2009 [eluser]juan1904[/eluser] Probably you've already solved this problem but here we go anyway. Quote from your code: Code: $this->sesson->set_flashdata('error','you have enter the wrong details!'); Correct one: Code: $this->session->set_flashdata('error','you have enter the wrong details!'); error entering wrong login details - El Forum - 05-18-2009 [eluser]Thorpe Obazee[/eluser] juan, eagle eyes! happens all the time ![]() |