• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem deleting cookies

Hey guys,

I'm having a problem deleting cookies using the CI cookie helper. I'm getting the following error in my error log when I use


Quote:PHP Fatal error: Call to undefined function delete_cookie() in /home/etc/etc

I am loading the cookie helper, so that doesnt seem like the problem.


Having the same issue... any resolution?

Try this and see if it works. When deleting cookies the expire time has to be in the pass.
setcookie("outreach-scorer", "", $expire);

So I guess there is no way to delete the csrf_cookie since CI sets it?

The code above should delete any cookies unless CI is re-setting it.
Make sure you have the correct cookie name.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.