download error, use cookie for session