
Course 37 - Building Web Apps with Ruby On Rails | Episode 8: Mastering Sessions, Encrypted Cookies, and CSRF Protection
In this lesson, you’ll learn about: session management, secure data storage, and protection against CSRF attacks in Ruby on Rails1. Understanding SessionsUsing Ruby on Rails:🔹 Definition:
Sessions allow the app to remember users across requests
🔹 Example:
User logs in once → stays logged in while navigating
👉 Key Insight
HTTP is stateless, so sessions provide continuity for user identity2. Managing Sessions in Application Controller🔹 Centralized control:
ApplicationController handles authentication globally
🔹 Common helper methods:
current_user → returns the logged-in user
logged_in? → checks…
The skinny
The skinny isn't ready yet — notes appear once the transcript is processed.