added shortcut for setting cookies.