fixed cookie path for all functions