Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
266 views
in Technique[技术] by (71.8m points)

php里nginx服务器上怎么获取header头里的从cookie

我使用getallheaders()这个方法 告诉我方法不存在 ?? 如何获取呢php 版本7.3

我知道这个方法是apache_request_headers()函数的别名,但是nginx下怎么获取呢


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

cookies 会自动存于 $_COOKIE 全局变量里面


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...