Added expiresUnit option

- Added expiresUnit option to set the expiration time of the cookie in
days, hours or minutes