The following code uses JavaScript to return the comparison of all key values of the current session cookie: javascriptcookie.
This example describes how JavaScript returns the comparison of all key values of the current session cookie. Share it with you for your reference. The details are as follows:
The following JS Code outputs all cookie key-Value Comparison
<! DOCTYPE html> <body> Cookies associated with this document: <script> document. write (document. cookie); </script> </body>
The output result on the local machine is as follows;
Copy codeThe Code is as follows: Cookies associated with this document: _ gads = ID = 88235e28adb2de90: T = 1371793250: S = Hangzhou; ASPSESSIONIDSQQDBSSD = Hangzhou; ASPSESSIONIDSQQBCTSD = Beijing; _ qca = P0-1744690351-1372043640630; ASPSESSIONIDQSSDASTC = Shanghai; ASPSESSIONIDQQRBCTTC = Shanghai; _ utma = Shanghai; _ utmb = Shanghai; _ utmc = 119627022; _ utmz = google | utmccn = (organic) | utmcmd = organic | utmctr = jb51.net
I hope this article will help you design javascript programs.