[eluser]Aken[/eluser]
Two things:
1) CodeIgniter automatically adds in the current time() to the expiration. So do not add time() in yourself, only the number of seconds ahead of the current time when you'd like it to expire. So remove time() from your equation and that will help.
2) If you have set any of your cookie preferences in the application/config/config.php file to things BESIDES the default, but you set any of the above items in your array to the default, they will be overwritten to the items set in the config file.
For example, the following defaults are checked in the set_cookie function:
Code:
prefix: ''
domain: ''
path: '/'
secure: FALSE
If any of those items in your $cookie array are equal to those defaults, but they are NOT equal to the defaults in the config file, it'll take the value from your config file instead. So double check those, because it could be very easily overlooked.