Last active
January 20, 2017 10:53
-
-
Save takundao71/bcbdb57331ce32c08a5f9ac181f279f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsでsession管理にredis使う場合の注意点 | |
config/initializers/session_store.rbで | |
secureをつけるとhttpsでしか送信されないので注意 | |
これはクッキーの仕様らしい | |
そして | |
:domain => :allにすると恐らく全てのサブドメインでクッキーが共有される | |
これはいいのだが | |
railsはtdl_lengthとやらが1しかないので | |
hogehoge.mogemoge.goge.jpとか「.」が多いとsessionが正しく作られず、おかしいことになるので注意 | |
めっちゃはまったorz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment