Welcome Guest, Not a member yet? Register   Sign In
$this->input->cookie() does not take into account cookie prefix from config.php
#2

[eluser]bitist[/eluser]
It seems that the prefix is not handled by get_cookie function. Change the function in you cookie_helper.php to
Code:
if (!function_exists('get_cookie')) {
    function get_cookie($index = '', $xss_clean = FALSE, $prefix = '') {
        $CI =& get_instance();
        if($prefix == '' && $CI->config->item('cookie_prefix') != '') {
            $prefix = $CI->config->item('cookie_prefix');
        }
        return $CI->input->cookie($prefix.$index, $xss_clean);
    }
}


Messages In This Thread
$this->input->cookie() does not take into account cookie prefix from config.php - by El Forum - 01-17-2009, 02:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB