Set udate value in cookie code