[eluser]Jhourlad Estrella[/eluser]
Guys, I'm not sure if I'm exactly right here but I think it's got to do something about how CI's constructs sessions and cookies. Consulting config.php you'll find an entry that says 'cookie_prefix'. I guess simply instructing CI to
Code:
delete_cookie('my_cookie_name')
tells it to just delete a cookie named 'my_cookie_name', which I think is, non-existent because the actual cookie name for the cookie might be 'my_cookie_prefix_my_cookie_name'.
I believe the one below is the more appropriate approach:
Code:
delete_cookie('user', null, null, $this->config->item('cookie_prefix'));
Can anybody please confirm? If my speculation is right, it might help a lot of coders out there on this issue.
Thanks.