The following code uses JavaScript to return the comparison of all key values of the current session cookie: javascriptcookie.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.