yes, that looks correct.
There are a few places you will need to make the change
1) Change the code that sets the cookie values
2) Edit the code for the Authenticate user server behavior that is used for auto login.
you will need to edit the trigger for the server behavior to reference the correct cookie names, and the code that passes the cookie values to the database.