Home > Web Front-end > JS Tutorial > JavaScript method to return all key value comparisons of the current session cookie_javascript skills

JavaScript method to return all key value comparisons of the current session cookie_javascript skills

WBOY
Release: 2016-05-16 16:05:50
Original
1127 people have browsed it

The example in this article describes how JavaScript returns all key-value comparisons of the current session cookie. Share it with everyone for your reference. The details are as follows:

The following JS code outputs all cookie key value comparisons

<!DOCTYPE html>
<html>
<body>
Cookies associated with this document:
<script>
document.write(document.cookie);
</script>
</body>
</html>
Copy after login

The output results on this machine are as follows;

Copy code The code is as follows:
Cookies associated with this document: __gads=ID=88235e28adb2de90:T=1371793250:S= ALNI_MZZqvAlWhTDl1EqFEU4EKH4ZMmPlQ; ASPSESSIONIDSQQDBSSD=AIAFKJPBBOEKIJNAMAOMGJJH; ASPSESSIONIDSQQBCTSD=EPOMLBJDJBKBGKHBJMBGDDPC; PSESSIONIDQSSDASTC=EFKIBPODBGMKHIINAGPNMFCA; ASPSESSIONIDQQRBCTTC=FHFAALIBDLEDFDCFJMKIHICP; __utma=119627022.880502788.1371793248.1372301378.1372312534.8; __utmb=119627022 .4.10.1372312534; __utmc=119627022; __utmz=119627022.1371803017.3.2. utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=jb51.net

I hope this article will be helpful to everyone’s JavaScript programming design.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template