protected static function createCookieSafePath($path)
    {
        $path = array_filter(explode('/', $path));
        if (empty($path)) {
            return '/';
        }
        $path = array_map('rawurlencode', $path);
        return '/' . implode('/', $path);
    }
protected static function createCookieSafePath($path)
    {
        $path = array_filter(explode('/', $path));
        if (empty($path)) {
            return '/';
        }
        $path = array_map('rawurlencode', $path);
        return '/' . implode('/', $path);
    }
protected static function createCookieSafePath ( $ path ) { $ path = array_filter ( explode ( '/' , $ path ) ) ; if ( empty ( $ path ) ) { return '/' ; } $ path = array_map ( 'rawurlencode' , $ path ) ; return '/' . implode ( '/' , $ path ) ; }
Returns a properly formatted ascii string for the cookie path.
Browsers are notoriously bad at parsing the cookie path. They do not
respect the content-encoding header. So we must be careful when dealing
with setups with special characters in their paths.

@since Symphony 2.7.0
Returns a properly formatted ascii string for the cookie path . Browsers are notoriously bad at parsing the cookie path . They do not respect the content - encoding header . So we must be careful when dealing with setups with special characters in their paths .