Welcome Guest, Not a member yet? Register   Sign In
Cookie Helper - get_cookie() prefix problem
#1

[eluser]akifemre[/eluser]
Hey all,
set_cookie() and delete_cookie() functions are checking cookie prefix in arguments and config but looks like get_cookie() function don't care cookie prefix. And i edited it such.

Code:
function get_cookie ($index = '', $xss_clean = FALSE, $prefix = '')
{
    $CI = & get_instance( );
    if ( $prefix == '' and $CI->config->item('cookie_prefix') != '' )
    {
        $prefix = $CI->config->item('cookie_prefix');
    }
    return $CI->input->cookie($prefix . $index, $xss_clean);
}


Messages In This Thread
Cookie Helper - get_cookie() prefix problem - by El Forum - 01-10-2009, 08:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB