Home >Backend Development >PHP Tutorial >Does session_id have to be under the same domain name to obtain data?

Does session_id have to be under the same domain name to obtain data?

WBOY
WBOYOriginal
2016-07-06 13:53:091039browse

Does session_id have to be under the same domain name to obtain data?

Reply content:

Does session_id have to be under the same domain name to obtain data?

Commonly used sessions rely on cookies to implement, so they also depend on the domain of the cookie, so they cannot be shared across domains. If you want to share across domains, you need to make other adaptations.

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