VueJs Wechat official account

the whole project of vuejs scaffolding is based on official account development, and the product needs to do persistent login. At present, the background does persistent storage according to SESSION. After testing on IOS and Android phones, when IOS mobile phone kills Wechat process, Wechat browser will delete cookie, resulting in the loss of cookie

.

has now tried to obtain the js of the cookie, front end to manually setcookie, and found that after the IOS phone killed Wechat process, js could not setcookie,

! [picture upload.]

how to setcookie, Wechat on IOS mobile phone

Aug.29,2021

I use localStorage.setItem to save information locally on my mobile phone

Menu