Welcome Guest, Not a member yet? Register   Sign In
what happens if user disable cookies?
#1

[eluser]netrox[/eluser]
I disabled cookies on purpose and noticed that CI apps were not able to use any session variables at all.

That is different from native PHP sessions that is when it detects that cookies cant be set, they append the SESS_ID to each url.

Can it do that on CodeIgniter?
#2

[eluser]WanWizard[/eluser]
No, not by default.

You will have to do some extending to add the session id to every link (maybe an extension of base_url()?), and code to strip the session id from every URI request, to feed it to the session library, and to make it transparent for your controllers.

Can be done, but quite complex.

Why the trouble? Browsers with cookies disabled aren't getting far on the internet these days...
#3

[eluser]netrox[/eluser]
Thanks. That's what I figured.




Theme © iAndrew 2016 - Forum software by © MyBB