Remove dependence of cookie on relative path