first getCurTime
get cookie