Welcome Guest, Not a member yet? Register   Sign In
Does CI check if cookie is enabled?
#3

[eluser]doors[/eluser]
You have any idea how to do this? I have the following code but it's not working:

Code:
set_cookie('test', 'test', 0);

if (get_cookie('test') == 'test'){
   echo 'Cookie is enabled';
}

Why would this not work?

When I use $_COOKIE['test'] it works. So why when I use get_cookie() it doesn't.


Messages In This Thread
Does CI check if cookie is enabled? - by El Forum - 02-04-2008, 01:40 PM
Does CI check if cookie is enabled? - by El Forum - 02-04-2008, 06:53 PM
Does CI check if cookie is enabled? - by El Forum - 02-12-2008, 07:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB