Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

ROR SESSION STORE: Session store with :redis_store not getting cookie with session_id in it in response

$
0
0

session_store.rb

Rails.application.config.session_store :redis_store,                                       servers: ["redis://localhost:6379/0/session"],                                       expire_after: 90.minutes,                                       key: "key",                                       threadsafe: true,                                       secure: true

middleware used :-

config.middleware.use ActionDispatch::Session::RedisStoreconfig.middleware.use ActionDispatch::Cookies

when i try to insert key, value in session object it successfully get inserted and even i can see in redis db the session get created succesfullyas per my knowledge ActionDispatch::Session::RedisStore automatically generates cookie with _session_id key in it which is used to retrieve session data from redis but in my case i am not receiving any cookie in responseplease help am i missing something?

tried many other gems like redis-actionpack, redis-session-store etc none worked


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>