add secured cookie creation method