CodeIgniter Forums
cookies isn't saved in browser: ff, ie, chrome. but worked in safari and opera. in profiler it is worked. - 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: cookies isn't saved in browser: ff, ie, chrome. but worked in safari and opera. in profiler it is worked. (/showthread.php?tid=22420)



cookies isn't saved in browser: ff, ie, chrome. but worked in safari and opera. in profiler it is worked. - El Forum - 09-09-2009

[eluser]ganis[/eluser]
i simply use

$this->load->library('session');

just like tutorial told me. and with config:

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "";
$db['default']['database'] = "mydatabase";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

In profiler, we can see that the cookies is saved in the database. But when I check the cookies in browser, it isn't saved. So every time I open a page, the cookies is added to the browser.

However, in opera and safari it's work, the cookies is saved to the browser.

What's the problem? in firefox, at first I thought it was the add-ons that I have, but when I disabled them or when I used safe mode, the problem wasn't solved. Help...

any replies will be highly appreciated.


cookies isn't saved in browser: ff, ie, chrome. but worked in safari and opera. in profiler it is worked. - El Forum - 09-10-2009

[eluser]ganis[/eluser]
no reply?

because it is so stupid or anyone has asked it? i've been looking anywhere and can't find it.


cookies isn't saved in browser: ff, ie, chrome. but worked in safari and opera. in profiler it is worked. - El Forum - 12-11-2009

[eluser]ganis[/eluser]
btw, it has been solved by myself. It was a stupid mistake, just a wrong cookie config in the config.php