Home Backend Development PHP Tutorial 小弟我在一个函数中建立了一个Cookie,可在另一个函数中却不认它

小弟我在一个函数中建立了一个Cookie,可在另一个函数中却不认它

Jun 13, 2016 am 10:06 AM
cookie

我在一个函数中建立了一个Cookie,可在另一个函数中却不认它?
我在a函数中建立了一个Cookie,可在b函数中却不认它,后来,我又在b函数中再建立了一个同名的Cookie,结果查看浏览器发现里边竟有两个同名的Cookie! Cookei不是应该是唯一的吗?怎么会有两个?我的b函数只认它自己创建的Cookie,要怎样才能让它认a函数的?

我用的浏览器是火狐,两个Cookei完全同名,只是创建的路径不同。

------解决方案--------------------
创建的路径不一样就可以存在两个了呗。又不是同一目录下的。

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where are cookies stored? Where are cookies stored? Dec 20, 2023 pm 03:07 PM

Where are cookies stored?

Where are the cookies on your computer? Where are the cookies on your computer? Dec 22, 2023 pm 03:46 PM

Where are the cookies on your computer?

How to Fix Roblox 403 Forbidden Error on Google Chrome How to Fix Roblox 403 Forbidden Error on Google Chrome May 19, 2023 pm 01:49 PM

How to Fix Roblox 403 Forbidden Error on Google Chrome

Where are the mobile cookies? Where are the mobile cookies? Dec 22, 2023 pm 03:40 PM

Where are the mobile cookies?

What are the dangers of cookie leakage? What are the dangers of cookie leakage? Sep 20, 2023 pm 05:53 PM

What are the dangers of cookie leakage?

Detailed explanation of where browser cookies are stored Detailed explanation of where browser cookies are stored Jan 19, 2024 am 09:15 AM

Detailed explanation of where browser cookies are stored

How cookies work How cookies work Sep 20, 2023 pm 05:57 PM

How cookies work

Does clearing cookies have any impact? Does clearing cookies have any impact? Sep 20, 2023 pm 06:01 PM

Does clearing cookies have any impact?

See all articles