【问题标题】:Any idea why internet explorer doesn't save the session cookie?知道为什么 Internet Explorer 不保存会话 cookie 吗?
【发布时间】:2012-05-03 22:30:02
【问题描述】:

我使用 Rails 3.0.11。在 Internet Explorer 中,会话 cookie 没有保存(至少我没有看到),但在其他浏览器(chrome、Firefox)中它会显示。

【问题讨论】:

  • 您使用子域吗?如果您愿意,请在此处命名。
  • 是的。 www 也是一个子域。
  • 在这里命名它们是什么意思?我有两个子域:www.mydomain.com 和 htzone.mydomain.com
  • 您的initializers/session_store.rb 包含选项:domain => ".mydomain.com"? (请务必在修改此文件后重新启动您的应用)
  • 我刚刚试了一下。仍然没有看到 rails session cookie

标签: ruby-on-rails ruby ruby-on-rails-3 session session-cookies


【解决方案1】:

看起来 Internet Eplorer 确实保存了会话 cookie,但它没有在开发人员工具上显示它。我使用 Fiddler 在 ie 中查看会话 cookie 信息。

【讨论】:

    猜你喜欢
    • 2020-02-25
    • 1970-01-01
    • 2010-10-03
    • 2013-02-04
    • 1970-01-01
    • 2012-06-26
    • 2016-09-24
    • 2015-04-10
    • 2015-05-25
    相关资源
    最近更新 更多