Fixes server-sided cookie handling