If the application puts information into a cookie, the information is in a cookie. You cannot (generally) change the way an application behaves by virtue of your testing.
What you can do, however, is correlate the credentials with a web_reg_save_param_ex call and do with them what you need to do.