Welcome Guest, Not a member yet? Register   Sign In
Problem with CI Session
#5

[eluser]LuckyFella73[/eluser]
How did you set the cookie settings in application/config/config.php ?

Try like this maybe:
Code:
$config['cookie_prefix'] = "yourprefix";
$config['cookie_domain'] = ($_SERVER['SERVER_NAME'] == 'localhost' ? '' : preg_replace('/^www\./', '', $_SERVER['SERVER_NAME']));
$config['cookie_path']  = "/";
$config['cookie_secure'] = FALSE;

Then it should work generelly on localhost and on your productive server.


Messages In This Thread
Problem with CI Session - by El Forum - 02-21-2013, 07:44 PM
Problem with CI Session - by El Forum - 02-22-2013, 02:33 AM
Problem with CI Session - by El Forum - 02-22-2013, 05:28 AM
Problem with CI Session - by El Forum - 02-22-2013, 05:30 AM
Problem with CI Session - by El Forum - 02-22-2013, 10:21 AM
Problem with CI Session - by El Forum - 02-22-2013, 12:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB