A background management system. After the user logs in, the upper right corner of the page displays "Welcome, admin"
admin is the account logged in
when login is successful, I will save token in cookie. Part of the code is as follows
setCookie("token",this.token,3600*12); //
this.$router.push("/home") //
but where should I save the user name? If it is refreshed in vuex, it will be gone
.is there any cookie that can store both user name and token at the same time?
how do people usually solve this situation?