Uysim

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Session is not set until the page reload

I work with Rails remote form. After set the session like session[:user_id] = 123, the session is still blank {}. After I refreshed page, I got the user_id value.
How can I access those session without refreshing page?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.