Fixed cookie issue in logout.