How does one return the comparison of all key values of the current session cookie using JavaScript?

Source: Internet
Author: User

How does one return the comparison of all key values of the current session cookie using JavaScript?

The following JS Code outputs all cookie key-Value Comparison

 

1

2

3

4

5

6

7

8

9

<! DOCTYPE html>

<Html>

<Body>

Cookies associated with this document:

<Script>

Document. write (document. cookie );

</Script>

</Body>

</Html>

The output result on the local machine is as follows;

The Code is as follows:

Cookies associated with this document: _ gads = ID = Shanghai: T = 1371793250: S = Beijing; ASPSESSIONIDSQQDBSSD = Beijing; ASPSESSIONIDSQQBCTSD = Beijing; _ qca = P0-1744690351-1372043640630; ASPSESSIONIDQSSDASTC = Beijing; ASPSESSIONIDQQRBCTTC = tenant; _ utma = tenant; _ utmb = 119627022.4.10.1372312534; _ utmc = 119627022; _ utmz = Alibaba = google | utmccn = (organic) | utmcmd = organic | utmctr = jb51.net

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.