gpt4 book ai didi

apache - 重写 : Leading dot in the cookie domain

转载 作者:行者123 更新时间:2023-12-02 02:20:00 26 4
gpt4 key购买 nike

我们有一个使用 cookie 来存储代码的网络应用程序。

cookie 的域是“www.mydomain.com”。

我们制定了重写规则,为输入特定 URL 的客户创建 cookie:RewriteRule ^/example.* https://www.mydomain.no/somepage [co=codeCookie:123456:www.mydomain.no]

Cookie 已创建,但域名中有一个前导点:'.www.mydomain.com'。 Web 应用程序不读取的内容。

我们已尝试将域名设置为“.mydomain.com”(按预期工作),但 Web 应用程序也未读取该域名。

有没有办法省略 cookie 域中的前导点?

最佳答案

在经历了很多痛苦之后,我尝试了以下方法;

RewriteRule ^(.*)$ /index.php/$1 [L,PT,CO=open_id_session_id:123:;]

成功了!

关于apache - 重写 : Leading dot in the cookie domain,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8710712/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com