Welcome Guest, Not a member yet? Register   Sign In
SERVER HTTP_RANGE being stripped by codeigniter, works in a straight PHP file.
#21

[eluser]deejuk[/eluser]
So, I was completely wrong and in actual fact it kicks out due to the security checks.

On Iphone, it seems to lose the user session information in codeigniter when playing an MP4, the same code works fine everywhere else, if I remove it works.

Code:
if(!$this->session->userdata('logged_in')){  exit(); }

Any body know what might be causing this to happen?

Thanks
#22

[eluser]deejuk[/eluser]
Ok, so I worked it out. the ios device is running private browsing. Because its blocking cookies, codeigniter is losing the session info.

Is there a way to not rely on cookies for this?
#23

[eluser]CroNiX[/eluser]
Not natively. You'd have to pass the session ID via the URL for every request and CI sessions don't have the built in ability to work that way, although you could probably extend the session library and add that in using a query string. Doubt it would be easy. Not sure if it would be worth it for the very small minority of people who manually turn cookies off, which is not the default setting in modern web browsers. You can always test the browser for cookie support and if not enabled alert the user that the feature requires cookies to be enabled.




Theme © iAndrew 2016 - Forum software by © MyBB