Welcome Guest, Not a member yet? Register   Sign In
Cookie path inconsistencies with /index.php
#1

[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?
#2

[eluser]Michael Wales[/eluser]
Code:
$config['cookie_prefix']    = "";
$config['cookie_domain']    = "";
$config['cookie_path']        = "/";

Should work across the entire localhost domain with no problem.
#3

[eluser]BoltClock[/eluser]
I checked, and those are the exact settings per default CI installation. Still only works without /index.php/.




Theme © iAndrew 2016 - Forum software by © MyBB