Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试修改 cookie,特别是 ipb 论坛设置的 pass_hash cookie。我已经尝试了几种不同的 firefox 扩展来修改这个 cookie 并设置它,adn 似乎不能这样做。
cookie 似乎一经创建就过期了。我正在尝试将其设置为从现在起一年后到期。我无法以任何形式修改此 cookie。即使删除该 cookie 并制作一个新的 cookie 也不起作用……可能是因为它被覆盖了。
为什么会这样,有什么办法可以强迫它留下来吗?
我想,这取决于服务器端。如果您在客户端操作 cookie 以“永远”存在,服务器仍然可以将其删除。如果这个 ipb 论坛软件有“单向”cookie 的策略,即删除每个 cookie 并写入一个新的,或者在服务器端重置过期日期,你无能为力。
干杯,