login problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: login problem (/showthread.php?tid=182) |
login problem - bobykurniawan - 11-08-2014 Hey, i try to implementing cookies for login and save it to database. But i've a problem with this error. Quote:A PHP Error was encountered Success to login but if i disable the redirect, that error is showing and able to save into logindata This my controller for login PHP Code: public function ceklogin() My model for the proses above PHP Code: function pilihdata($tbl,$fieldkondisi,$fieldpilih) and the randstring in my lib PHP Code: function randstring() An RE: login problem - Rufnex - 11-09-2014 Can you show the Line Number: 286 and the base of the given array. the error tells you that you use an array within a function who needs a string. RE: login problem - bobykurniawan - 11-09-2014 (11-09-2014, 01:28 AM)Rufnex Wrote: Can you show the Line Number: 286 and the base of the given array. Thanks for trying help. My problem already solved. There is a typo in saving cookies PHP Code: $vCookie1['sname'] = 'dnt_user_cookie'; PHP Code: $vCookie1['name'] = 'dnt_user_cookie'; RE: login problem - Rufnex - 11-09-2014 fine! ;o) RE: login problem - Chroma - 11-14-2014 If only all bugs were that straightforward. |