Believe that we have encountered such a problem, there is a problem with the mobile browser, the server session is not properly read, the current solution in the project is to take H5 phone local storage only key to solve the
Code Snippets
//defining JSON Format StringsvarUserData ={name:"Sankyu Name", Account:"Sankyu", Level:1. Disabled:true};//Storing UserData dataLocalstorage.setitem ("UserData", Json.stringify (UserData));//read UserData data and assign to new variable NewuserdatavarUserData = Json.parse (Localstorage.getitem ("UserData"));//set a new value for data within UserDataJson.parse (Localstorage.getitem ("UserData")). Name = "New Sankyu name"; Userdata.name= "New Sankyu Name";//output New Sankyu Namealert (userdata.name);//Output Sankyu NameAlert (Json.parse (Localstorage.getitem ("UserData")). Name);
A small number of mobile browsers for cookie support is not enough to prevent the server to read the session solution