[eluser]WebDruid[/eluser]
I have tried using the cookie helper and the native php cookie functions within CI, i have had no luck!
I am using CI 1.7.2, Browsers: IE8 and Google Chrome 3.0.195.38
i have created a plain php file outside of CI with native php cookie functions and it works in both Browsers (so i don't think it is a browser prob).
With my CodeIgniter Project:
In IE8 my cookies do not get created. In Google Chrome they get created but expire at the end of the session.
i have looked through all the threads i can find on cookies, but i can't seem to find anything that would help here
this is the code i used to create the Cookie
Code:
$cookie_time = time() + (3600 * 24 * 30);
$cookie = array(
'name' => 'crm',
'value' => "user=$user&hash;=$pass",
'expire' => $cookie_time
);
set_cookie($cookie);
this is the code i use to retrieve the cookie
Code:
if(get_cookie('crm') != false)
{
parse_str(get_cookie('crm'));
$success = $this->_getUserDate($user,$hash);
if($success)
{
redirect('Dash');
}
else $this->enter_details();
}
if anyone could tell me what I'm doing wrong, it would be appreciated, thanks