Welcome Guest, Not a member yet? Register   Sign In
Problem Deleting Cookie
#4

[eluser]Joey Marchy[/eluser]
After some more testing and finding this post in the forums removing the underscores from my cookie name fixed the problem I was having with the cookie helper not working.

http://ellislab.com/forums/viewthread/90364/P15/#459871

So to recap:

Code:
$cookie = array(
'name'   => 'loggedin',      //NOT logged_in
'value'  => 'yes',
'expire' => '86500',
'domain' => '.domain.com',
'prefix' => 'areyou_'
);

set_cookie($cookie);

echo 'logged in ' . get_cookie('areyou_loggedin');           //prints: logged in yes
echo 'logged in ' . delete_cookie('areyou_loggedin');     //prints: nothing, cookie was deleted


Messages In This Thread
Problem Deleting Cookie - by El Forum - 12-17-2008, 02:58 PM
Problem Deleting Cookie - by El Forum - 12-17-2008, 04:32 PM
Problem Deleting Cookie - by El Forum - 12-17-2008, 08:39 PM
Problem Deleting Cookie - by El Forum - 12-17-2008, 09:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB