How to get cookies to work? |
[eluser]gh0st[/eluser]
I am trying to figure out how to get cookies to work with CI, but they do not appear to work, I am wanting to store a value for later use. I am doing a basic example: Code: class Test2 extends Controller The cookie values are always empty. I have tested a PHP cookie (hard-coded) and this works fine, but the CI ones don't -- why not? How do I get cookies to work?
[eluser]wabu[/eluser]
As a test, try setting domain => false in the code you posted and see if that works. Check out: http://us.php.net/manual/en/function.set....php#73107 http://us.php.net/manual/en/function.set....php#71743 |
Welcome Guest, Not a member yet? Register Sign In |