Cookie path inconsistencies with /index.php |
[eluser]BoltClock[/eluser]
I've been messing with cookies over the past couple days, but apparently my site just wants to set cookies to the path /index.php/ even when I tell it to set cookies to the path / instead as long as I'm viewing http://localhost/index.php (CI is in my site root). Put simply, I have to avoid index.php in order for my site cookies to work, so is there any possible way to redirect http://localhost/index.php to http://localhost/ instead? Or am I doing something completely wrong that's making cookies and browsers behave weirdly?
[eluser]Michael Wales[/eluser]
Code: $config['cookie_prefix'] = ""; Should work across the entire localhost domain with no problem.
[eluser]BoltClock[/eluser]
I checked, and those are the exact settings per default CI installation. Still only works without /index.php/. |
Welcome Guest, Not a member yet? Register Sign In |