CodeIgniter Forums
CI Session and Iphone - 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: CI Session and Iphone (/showthread.php?tid=31528)



CI Session and Iphone - El Forum - 06-23-2010

[eluser]cysquan[/eluser]
Hi guys

I'm running to a strange problem with CI session while trying to run the CI web application on Iphone. As you can see in my attached picture, every times I make a request for an URL on iphone (Ajax or any link), CI creates a new session for that Iphone instead of using the existing one.

I've tried to access the website with android OS phones such as motorola droid and HTC incredible, the session is working fine on these devices

is anyone running to a problem like this? I been searching google for this whole day but still unable to find solution to this...

Thank you in advance for your helps!!! ^^


CI Session and Iphone - El Forum - 06-23-2010

[eluser]Mareshal[/eluser]
You are using Safari right? try change it's settings to keep the cookies. Or, try to disable database sessions in CI and test again.


CI Session and Iphone - El Forum - 06-23-2010

[eluser]cysquan[/eluser]
Ya, Iphone's browser is Safari, but I tested with the safari on windows and Mac, it works perfectly fine.

Also, if I disable database session, the cookies couldn't hold much of the cart data because it only allows 4Kb or is there a way around it?


CI Session and Iphone - El Forum - 06-23-2010

[eluser]Yorick Peterse[/eluser]
Enable cookies in Safari on the iPhone, that will probably fix the problem.