Set authentication cookie