Home >Web Front-end >HTML Tutorial >How to share data between web pages without a server_html/css_WEB-ITnose

How to share data between web pages without a server_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:331386browse

I used html jQuery to do it. I need to share data between several pages. I used $.cookie, but it doesn’t seem to work. Can someone please solve it?


Reply to discussion (solution)

If several pages are in the same domain name and in the same process, it is OK. However, COOKIES cannot be shared between multiple processes and different domain names

You will generally use server technology SESSION CACHE and other methods to achieve such needs

url parameters, html5 client storage, cookies

Statement:
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