there are two sets of pages of A br B
when you log in, you will choose An and B, A page will be displayed after A login, and B page will be displayed after B login. < page > how can I judge by cookie here?
there are two sets of pages of A br B
when you log in, you will choose An and B, A page will be displayed after A login, and B page will be displayed after B login. < page > how can I judge by cookie here?
cookie. I don't know whether you are judged by the front end or the back end.
submit to the backend when you select a page, and obtain data from the backend when displaying the page to prevent ultra vires.
of course, if there is no difference in permissions on the AB page, it is also possible to put cookie
what do you want to judge, that is, you default to An after selecting A for the first time? Then save a value to cookie after the first selection to mark what is selected
Previous: How to verify the video format?
Next: How can JS tell if a file or a folder is being dragged in?
Project is the user name information required by Vue, which is stored in the user s browser. This user name information can be obtained on other websites for example, if I log in to Tencent s website in my browser, can Baidu get my Tencent account inf...
take the introduction of momentjs online as an example. When introduced online, the page will automatically generate cookie under the root domain name of momentjs, but when I checked the source code of momentjs, I did not find any code implanted in cook...
use Chrome browser to open Baidu website, and use developer tools to check the Cookie, of Baidu website, as shown in the following figure, a total of 8 cookie items. document.cookie API cookie 7 cookie cookie HTTP cookie document.cookie API ...
the web program generated by create-react-app initiates a request to the api server: export const ax = axios.create({ baseURL: http:www.xxx.com api , timeout: 30000, proxy: { host: 127.0.0.1 , port: 3000, }, }); ax.get( xx ); ...
how to set cookie under the local file domain ...
Where is the cookie stored in the browser? Cookie and token, why only hijack the former? ...