fix bug in mapCookies
change time limit in cookie