cookie problem.. not working. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: cookie problem.. not working. (/showthread.php?tid=28439) |
cookie problem.. not working. - El Forum - 03-11-2010 [eluser]mohsin917[/eluser] Hello guys. Yesterday I was trying to set some cookies and get values but today the same code is not working... Code: $this->load->helper('cookie'); This was giving me yes at white page... But now its becoming headache for me.. Any Idea???? cookie problem.. not working. - El Forum - 03-11-2010 [eluser]mohsin917[/eluser] Helllloooo guys..... Nobody cookie problem.. not working. - El Forum - 03-11-2010 [eluser]n0xie[/eluser] Code: set_cookie('loogedin', 'value'); cookie problem.. not working. - El Forum - 03-11-2010 [eluser]mohsin917[/eluser] Its not working... cookie problem.. not working. - El Forum - 03-11-2010 [eluser]mohsin917[/eluser] This php code is working but not the CI cookie helper Code: $value = 'My cookie data'; cookie problem.. not working. - El Forum - 03-11-2010 [eluser]mohsin917[/eluser] I figured out half problem.. Actually the problem is not in setting a cookie. problem is in get_cookie. now this code works. Code: $this->load->helper('cookie'); display the exact value and expire after 60 seconds.. But why this below line is not working.... Code: echo get_cookie('loggedin'); cookie problem.. not working. - El Forum - 03-11-2010 [eluser]mohsin917[/eluser] Oooo sorry its working now... I have loaded the cookie helper twice. One in config file and 2nd in the controller.. I remove one and its started working.... Is this a bug or something else?? anyway thanx... |