[eluser]koryrok[/eluser]
Hi Fuzzy, thanks!
Heres what I did..
update autoload.php to:
Code:
$autoload['helper'] = array('cookie', 'cookie_user_helper');
create the following helper and put it in helper directory:
Code:
<?php
function cookie_user()
{
if ( get_cookie('thecookie')){
}
else{
$uuid = md5(uniqid(rand(), true));
$cookie = array(
'name' => 'thecookie',
'value' => $uuid,
'expire' => '86500',
'domain' => '.domain.com',
'path' => '/'
);
set_cookie($cookie);
}
}
cookie_user();
?>
I'm not seeing the cookie though, thanks!