Add withCookie interface

GetSecureCookie argument r is now of type withCookie intf.