07-12-2011, 06:01 AM
[eluser]Ornis[/eluser]
Hallo
I set a persistent cookie in a helper file which works perfectly:
However, the cookie expires `At The End Of Session`, not at the requested time.
Thanks for your help.
Martin
Hallo
I set a persistent cookie in a helper file which works perfectly:
Code:
$cookie = array(
'name' => 'PersistentCookie',
'value' => $value,
'expire' => time() + 31 * 24 * 60 * 60,
'domain' => '.mywebsite.ch',
'path' => '/',
'prefix' => '');
$CI->input->set_cookie($cookie);
However, the cookie expires `At The End Of Session`, not at the requested time.
Thanks for your help.
Martin