CodeIgniter Forums
CI 1.7.3 cookies on Mac OS Safari not showing - 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: CI 1.7.3 cookies on Mac OS Safari not showing (/showthread.php?tid=41257)



CI 1.7.3 cookies on Mac OS Safari not showing - El Forum - 05-03-2011

[eluser]Enalds[/eluser]
hi i got a problem about mac os safari browser is not showing any cookies.

somebody help me? thanks.


CI 1.7.3 cookies on Mac OS Safari not showing - El Forum - 05-03-2011

[eluser]sblaas[/eluser]
Have you got anymore informatie ? ( what code are you using to set / retrieve cookies etc )


[quote author="Enalds" date="1304434661"]hi i got a problem about mac os safari browser is not showing any cookies.

somebody help me? thanks.[/quote]


CI 1.7.3 cookies on Mac OS Safari not showing - El Forum - 05-03-2011

[eluser]Enalds[/eluser]
I'm using this

$this->session->set_userdata(array("test" => $name));

EDIT: My problem is now fixed. I use native sessions.


CI 1.7.3 cookies on Mac OS Safari not showing - El Forum - 05-04-2011

[eluser]WanWizard[/eluser]
That is not "fixed". That is worked around.

If native sessions work, that only means that PHP's default config of the cookie parameters is better than yours. In the end, ALL session solutions work the same way.
Configure the session and cookie parameters properly, and switch back to CI's session class. It's more secure.

When you hit an issue, debug it, and fix the problem. Working around it leads to sloppy code.