add new cookieExpires config paramater and use it when we set cookies
remove a console.debug